Skip to content

Commit 9161029

Browse files
committed
testsuite: test that flux run --taskmap=block:foo fails
Problem: None of the shell taskmap tests ensure that an argument specified with the block scheme is rejected by the shell. Add a test to t2616-job-shell-taskmap.t.
1 parent d1dbb2f commit 9161029

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t2616-job-shell-taskmap.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ test_expect_success 'taskmap is unchanged with --taskmap=block' '
8484
| jq -e ".context.taskmap.map == [[0,4,4,1]]" &&
8585
test_check_taskmap $id
8686
'
87+
test_expect_success 'shell dies with --taskmap=block:oops' '
88+
test_must_fail_or_be_terminated flux run -N4 --tasks-per-node=4 \
89+
--taskmap=block:oops ./map.sh
90+
'
8791
test_expect_success 'taskmap is correct for --tasks-per-node=2' '
8892
id=$(flux submit -N4 --tasks-per-node=2 ./map.sh) &&
8993
flux job wait-event -p guest.exec.eventlog -f json $id shell.start &&

0 commit comments

Comments
 (0)