]> 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 bc5306c9356c895d6ae7a771c9e4096e08250fce..95883ddd54fabfd8be7016223e78bc638dbf4bac 100755 (executable)
@@ -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"