Skip to content

Commit 513cc87

Browse files
committed
testsuite: ensure epilog failure logs job exception
Problem: Nothing in the testsuite ensures that an epilog failure results in a job exception. Add a test to t2274-manager-perilog-per-rank.t to ensure a job exception is logged when the epilog fails.
1 parent a767a83 commit 513cc87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t2274-manager-perilog-per-rank.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ test_expect_success 'perilog: epilog failure drains ranks' '
401401
test "$(flux resource drain -no {reason})" = "epilog failed for job $jobid" &&
402402
undrain_all
403403
'
404+
test_expect_success 'perilog: epilog failure raises non-fatal job exception' '
405+
flux job wait-event -vHt 30 $jobid exception
406+
'
404407
test_expect_success 'perilog: job does not start when prolog cancel times out' '
405408
undrain_all &&
406409
flux config load <<-EOF &&

0 commit comments

Comments
 (0)