Skip to content

Commit

Permalink
testsuite: cover exclusion with dynamic R
Browse files Browse the repository at this point in the history
Problem: there is no test coverage for excluding ranks from
an instance that discovers R dyanmically.

Add test to t2312-resource-exclude.t.
  • Loading branch information
garlick committed Jul 17, 2023
1 parent 1455d0c commit 230341b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/t2312-resource-exclude.t
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,14 @@ test_expect_success 'flux resource status shows zero nodes excluded' '
test_expect_success 'unexclude event was posted' '
test $(has_resource_event unexclude | wc -l) -eq 1
'
# See flux-framework/flux-core#5337
test_expect_success 'test instance can exclude ranks' '
cat >exclude.toml <<-EOT &&
[resource]
exclude = "1"
EOT
test $(flux start -s2 -o,--config-path=exclude.toml \
flux resource status -s exclude -no {nnodes}) -eq 1
'

test_done

0 comments on commit 230341b

Please sign in to comment.