Skip to content

Commit

Permalink
fixup! testsuite: cover sched reload with partial alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Dec 19, 2024
1 parent f27b290 commit 1d4b6c8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions t/t1026-rv1-partial-release.t
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,26 @@ test_expect_success HAVE_PARTIAL_OK 'run a job and wait for node to get stuck' '
test_expect_success HAVE_PARTIAL_OK 'fluxion shows 1 nodes allocated' '
test $(fluxion_allocated nnodes) -eq 1
'
test_expect_success HAVE_PARTIAL_OK 'run a sleep job on one node' '
flux submit --wait-event=alloc -N1 sleep 3600
'
test_expect_success HAVE_PARTIAL_OK 'fluxion shows 2 nodes allocated' '
test $(fluxion_allocated nnodes) -eq 2
'
test_expect_success HAVE_PARTIAL_OK 'reload fluxion modules with match-format=rv1' '
remove_qmanager &&
reload_resource match-format=rv1 &&
load_qmanager_sync &&
flux resource list &&
FLUX_RESOURCE_LIST_RPC=sched.resource-status flux resource list
'
test_expect_success HAVE_PARTIAL_OK 'fluxion still shows 1 node allocated' '
test $(fluxion_allocated nnodes) -eq 1
test_expect_success HAVE_PARTIAL_OK 'fluxion still shows 2 nodes allocated' '
test $(fluxion_allocated nnodes) -eq 2
'
test_expect_success HAVE_PARTIAL_OK 'kill housekeeping' '
flux housekeeping kill --all
'
test_expect_success HAVE_PARTIAL_OK 'fluxion shows 0 nodes allocated' '
test_expect_success HAVE_PARTIAL_OK 'fluxion shows 1 node allocated' '
hk_wait_for_running 0 &&
test $(fluxion_allocated nnodes) -eq 0
'
Expand Down

0 comments on commit 1d4b6c8

Please sign in to comment.