forked from TrueCloudLab/restic
Refactor testsuite
This commit is contained in:
parent
25a214809b
commit
fb95f02af6
9 changed files with 52 additions and 49 deletions
16
testsuite/test-backup-missing-file.sh
Executable file
16
testsuite/test-backup-missing-file.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
set -em
|
||||
|
||||
# setup restic
|
||||
prepare
|
||||
run restic init
|
||||
|
||||
# start backup, break before saving files
|
||||
DEBUG_BREAK=Archiver.Snapshot 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