Skip to content

Commit

Permalink
testsuite: cover bad jobs moved to lost+found
Browse files Browse the repository at this point in the history
Problem: no tests confirm that bad job directories are
moved to the lost+found directory.

Add one.
  • Loading branch information
garlick committed Jul 24, 2024
1 parent 9ad3b96 commit a18b52e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t2219-job-manager-restart.t
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ test_expect_success 'new queue configured on restart uses defaults' '
grep "^newqueue: Scheduling is stopped" dump_queue_ignored.out
'

test_expect_success 'bad job directory is moved to lost+found' '
flux start \
-o,-Scontent.restore=${DUMPS}/warn/dump-shorteventlog.tar.bz2 \
flux kvs dir -R lost+found
'

for dump in ${DUMPS}/valid/*.tar.bz2; do
testname=$(basename $dump)
test_expect_success 'successfully started from '$testname "restart_flux $dump"
Expand Down

0 comments on commit a18b52e

Please sign in to comment.