(hq_env: HqEnv)
| 594 | |
| 595 | |
| 596 | def test_fractional_force_compact(hq_env: HqEnv): |
| 597 | hq_env.start_server() |
| 598 | hq_env.command(["submit", "--priority=10", "--array=1-100", "--cpus", "0.3 compact!", "--", "sleep", "0"]) |
| 599 | hq_env.command(["submit", "--cpus", "2.5 compact!", "--", "bash", "-c", "echo $HQ_CPUS"]) |
| 600 | |
| 601 | hq_env.start_worker(cpus="[[1, 2], [11, 12], [21, 22]]") |
| 602 | wait_for_job_state(hq_env, [1, 2], "FINISHED") |
| 603 | assert groups(2) == [1, 2] |
| 604 | |
| 605 | |
| 606 | def test_fractions_blocked(hq_env: HqEnv): |
nothing calls this directly
no test coverage detected