Skip to content

Commit

Permalink
testsuite: test flux housekeeping list --include=
Browse files Browse the repository at this point in the history
Problem: There are no tests of `flux hostlist list -i, --include`.

Add a few simple tests to t2226-housekeeping.t.
  • Loading branch information
grondo committed Oct 21, 2024
1 parent 9d41ce7 commit fa06b11
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/t2226-housekeeping.t
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,18 @@ test_expect_success 'flux housekeeping list shows 4 jobs' '
test_debug "flux housekeeping list" &&
test $(flux housekeeping list -n | wc -l) -eq 4
'
test_expect_success 'flux housekeeping list -i, --include works' '
flux housekeeping list -i 0 &&
test "$(flux housekeeping list -i 0 -no {ranks})" = 0 &&
flux housekeeping list -i 0,3 &&
test "$(flux housekeeping list -i 0,3 -no {ranks})" = "0,3"
'
test_expect_success 'flux housekeeping list -i, --include works with hostname' '
flux housekeeping list -i $(hostname)
'
test_expect_success 'flux housekeeping list -i, --include fails with bad hostlist' '
test_must_fail flux housekeeping list -i "foo["
'
test_expect_success 'send SIGTERM to the nodes by rank' '
kill_ranks 0-3 15
'
Expand Down

0 comments on commit fa06b11

Please sign in to comment.