Skip to content

Commit

Permalink
testsuite: add test for buggy flux-job wait-event context matching
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grondo committed Apr 1, 2024
1 parent 1ae5151 commit 90ec0b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t2231-job-info-eventlog-watch.t
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ test_expect_success 'flux job wait-event w/ bad match-context fails (invalid val
test_must_fail fj_wait_event --match-context=type=foo $JOBID exception
'

# Note: in test below, foo=0 would match severity=0 in buggy version
test_expect_success 'flux job wait-event w/ bad match-context fails (issue #5845)' '
test_must_fail fj_wait_event --match-context=foo=0 $JOBID exception
'

test_expect_success 'flux job wait-event w/ bad match-context fails (invalid input)' '
test_must_fail fj_wait_event --match-context=foo $JOBID exception
'
Expand Down

0 comments on commit 90ec0b2

Please sign in to comment.