Add tests for bug #101
This commit is contained in:
parent
c9ee79fc54
commit
1bb82afcf6
4 changed files with 68 additions and 21 deletions
16
testsuite/test-backup-missing-file2.sh
Executable file
16
testsuite/test-backup-missing-file2.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
set -em
|
||||
|
||||
# setup restic
|
||||
prepare
|
||||
run restic init
|
||||
|
||||
# start backup, break between walk and save
|
||||
DEBUG_BREAK=pipe.walk2 DEBUG_BREAK_PIPE="fake-data/0/0/9/37" run restic.debug backup "${BASE}/fake-data" && debug "done"
|
||||
|
||||
# remove file
|
||||
rm -f "${BASE}/fake-data/0/0/9/37"
|
||||
|
||||
# resume backup
|
||||
fg
|
||||
|
||||
cleanup
|
Loading…
Add table
Add a link
Reference in a new issue