Skip to content

Commit 90ec0b2

Browse files
committed
testsuite: add test for buggy flux-job wait-event context matching
Problem: No test in t2231-job-info-eventlog-watch.t ensures that the flux-job wait-event -m, --match-context=KEY=VAL doesn't produce a match when the VALUE matches but KEY does not. Add a test.
1 parent 1ae5151 commit 90ec0b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t2231-job-info-eventlog-watch.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ test_expect_success 'flux job wait-event w/ bad match-context fails (invalid val
182182
test_must_fail fj_wait_event --match-context=type=foo $JOBID exception
183183
'
184184

185+
# Note: in test below, foo=0 would match severity=0 in buggy version
186+
test_expect_success 'flux job wait-event w/ bad match-context fails (issue #5845)' '
187+
test_must_fail fj_wait_event --match-context=foo=0 $JOBID exception
188+
'
189+
185190
test_expect_success 'flux job wait-event w/ bad match-context fails (invalid input)' '
186191
test_must_fail fj_wait_event --match-context=foo $JOBID exception
187192
'

0 commit comments

Comments
 (0)