Skip to content

Commit ed42aff

Browse files
committed
testsuite: fix duration tests in t2700-mini-cmd.t
Problem: The duration tests in t2700-mini-cmd.t use jq incorrectly, so the tests are not checking that the actual jobspec duration value matches the expected result. Fix the broken tests.
1 parent 4cef4b7 commit ed42aff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t2700-mini-cmd.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ test_expect_success 'flux mini run -vvv produces exec events on stderr' '
9898
'
9999
test_expect_success HAVE_JQ 'flux mini submit --time-limit=5d works' '
100100
flux mini submit --dry-run --time-limit=5d hostname >t5d.out &&
101-
jq -r ".attributes.system.duration == 432000"
101+
jq -e ".attributes.system.duration == 432000" < t5d.out
102102
'
103103
test_expect_success HAVE_JQ 'flux mini submit --time-limit=4h works' '
104104
flux mini submit --dry-run --time-limit=4h hostname >t4h.out &&
105-
jq -r ".attributes.system.duration == 14400"
105+
jq -e ".attributes.system.duration == 14400" < t4h.out
106106
'
107107
test_expect_success HAVE_JQ 'flux mini submit --time-limit=1m works' '
108108
flux mini submit --dry-run --time-limit=5m hostname >t5m.out &&
109-
jq -r ".attributes.system.duration == 300"
109+
jq -e ".attributes.system.duration == 300" < t5m.out
110110
'
111111
test_expect_success HAVE_JQ 'flux mini submit -t5s works' '
112112
flux mini submit --dry-run -t5s hostname >t5s.out &&
113-
jq -r ".attributes.system.duration == 300"
113+
jq -e ".attributes.system.duration == 5" < t5s.out
114114
'
115115
test_expect_success HAVE_JQ 'flux mini submit -t5 works' '
116116
flux mini submit --dry-run -t5 hostname >t5.out &&

0 commit comments

Comments
 (0)