Skip to content

Commit c0f7c0e

Browse files
committed
testsuite: ensure --time-limit defaults to minutes
Problem: The flux-mini --time-limit option now defaults to minutes, but no tests check that this works as expected. Add a test that ensures the time limit defaults to minutes when no units are specified.
1 parent 3893eaf commit c0f7c0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t2700-mini-cmd.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ test_expect_success HAVE_JQ 'flux mini submit -t5s works' '
112112
flux mini submit --dry-run -t5s hostname >t5s.out &&
113113
jq -e ".attributes.system.duration == 5" < t5s.out
114114
'
115+
test_expect_success HAVE_JQ 'flux mini submit -t5 sets 5m duration' '
116+
flux mini submit --dry-run -t5 hostname >t5.out &&
117+
jq -e ".attributes.system.duration == 300" < t5.out
118+
'
115119
test_expect_success 'flux mini submit --time-limit=00:30 fails' '
116120
test_must_fail flux mini submit --time-limit=00:30 hostname 2>st.err &&
117121
grep -i "invalid Flux standard duration" st.err

0 commit comments

Comments
 (0)