Skip to content

Commit

Permalink
Test --resume-from
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarrison committed Nov 21, 2024
1 parent 93939f2 commit 2349840
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_slurm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ salloc -n 2 disBatch Tasks
[[ -f A.txt && -f B.txt && -f C.txt ]]
success=$?

# Add a task and check that we can resume
rm A.txt B.txt C.txt
echo "touch D.txt" >> Tasks
salloc -n 2 disBatch Tasks -r Tasks*_status.txt

[[ -f D.txt && ! -f A.txt && ! -f B.txt && ! -f C.txt ]]
success=$((success + $?))

# Test empty task file
salloc -n 2 disBatch /dev/null
success=$((success + $?))
Expand Down
8 changes: 8 additions & 0 deletions tests/test_ssh/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ disBatch -s localhost:2 Tasks
[[ -f A.txt && -f B.txt && -f C.txt ]]
success=$?

# Add a task and check that we can resume
rm A.txt B.txt C.txt
echo "touch D.txt" >> Tasks
disBatch -s localhost:2 Tasks -r Tasks*_status.txt

[[ -f D.txt && ! -f A.txt && ! -f B.txt && ! -f C.txt ]]
success=$((success + $?))

# Test empty task file
disBatch -s localhost:2 /dev/null
success=$((success + $?))
Expand Down

0 comments on commit 2349840

Please sign in to comment.