]> arthur.barton.de Git - bup.git/blobdiff - t/test-save-restore-excludes.sh
wvtest: set a very large timeout to disable test time colors
[bup.git] / t / test-save-restore-excludes.sh
index 97f4c72dc652191a3d6c2d5c0fd7137cc967004c..0896877350d199b4747e55c0a64c8e7705a23cb0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
-. ./wvtest-bup.sh
-. t/lib.sh
+. ./wvtest-bup.sh || exit $?
+. t/lib.sh || exit $?
 
 set -o pipefail
 
@@ -174,7 +174,10 @@ WVPASS mkdir src/sub1
 WVPASS mkdir src/sub2
 WVPASS touch src/sub1/a
 WVPASS touch src/sub2/b
-WVPASS echo "^$(pwd)/src/sub1/" > exclude-rx-file
+# exclude-rx-file includes blank lines to check that we ignore them.
+WVPASS echo "^$(pwd)/src/sub1/
+
+" > exclude-rx-file
 WVPASS bup index -u src --exclude-rx-from exclude-rx-file
 WVPASS bup save --strip -n bupdir src
 WVPASS bup restore -C buprestore.tmp /bupdir/latest/