Skip to content

Commit ac11b99

Browse files
committed
testsuite: fix invalid config tests in t2312
Problem: The invalid config tests in t2312-resource-exclude.t fail because there is no tty, not due to the invalid config. This is because the instances are run without argument, so are trying to launch an interactive shell. The tests thus fail with: lt-flux-broker: stdin is not a tty - can't run interactive shell ok 7 - config with bad exclude idset fails lt-flux-broker: stdin is not a tty - can't run interactive shell ok 8 - config with out of range exclude idset fails Add `true` as the argument to flux-start so that the instance would succeed if the invalid config was ignored.
1 parent aa64811 commit ac11b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t2312-resource-exclude.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ test_expect_success 'config with bad exclude idset fails' '
5656
[resource]
5757
exclude = "xxzz"
5858
EOT
59-
test_must_fail flux start -o,--config-path=resource.toml
59+
test_must_fail flux start -o,--config-path=resource.toml true
6060
'
6161

6262
test_expect_success 'config with out of range exclude idset fails' '
6363
cat >resource.toml <<-EOT &&
6464
[resource]
6565
exclude = "1"
6666
EOT
67-
test_must_fail flux start -o,--config-path=resource.toml
67+
test_must_fail flux start -o,--config-path=resource.toml true
6868
'
6969

7070
# See flux-framework/flux-core#5337

0 commit comments

Comments
 (0)