From 8eccfc6e79b10b801a8e155bb737a8f011a7bd1a Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 28 Mar 2015 16:09:08 +0100 Subject: [PATCH] Add test for backing up non-existing files restic doesn't terminate in this case, this was described by @rubenv in #90 https://github.com/restic/restic/issues/90#issuecomment-86901128 --- testsuite/test-backup-non-existing-file.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 testsuite/test-backup-non-existing-file.sh diff --git a/testsuite/test-backup-non-existing-file.sh b/testsuite/test-backup-non-existing-file.sh new file mode 100755 index 000000000..d06fe5c8e --- /dev/null +++ b/testsuite/test-backup-non-existing-file.sh @@ -0,0 +1,10 @@ +set -em + +# setup restic +prepare +run restic init + +# start backup with non existing dir +run timeout 10s restic.debug backup "${BASE}/fake-data/0/0/"{0,1,foobar,5} && debug "done" || false + +cleanup