]> arthur.barton.de Git - bup.git/blobdiff - t/test-save-strip-graft.sh
bloom_add: avoid declaration inside for statemnet
[bup.git] / t / test-save-strip-graft.sh
index bc5306c9356c895d6ae7a771c9e4096e08250fce..31f06ebe90058609b24bfe202e3a6f81fc099787 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"