]> arthur.barton.de Git - bup.git/blobdiff - t/test-save-strip-graft.sh
test-web: mark as unresolved with respect to python 3
[bup.git] / t / test-save-strip-graft.sh
index 4f0e35db587f563b339108e86df6eb9bc3158be6..95883ddd54fabfd8be7016223e78bc638dbf4bac 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
 
@@ -149,4 +149,13 @@ WVPASS compare-trees src/x/ "restore/latest/"
 # FIXME: Not tested for now -- will require cleverness, or caution as root.
 
 
+WVSTART "save collision"
+WVPASS force-delete "$BUP_DIR" src restore
+WVPASS bup init
+WVPASS mkdir -p src/x/1 src/y/1
+WVPASS bup index -u src
+WVFAIL bup save --strip -n foo src/x src/y 2> tmp-err.log
+WVPASS grep -F "error: ignoring duplicate path 1 in /" tmp-err.log
+
+
 WVPASS rm -rf "$tmpdir"