X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=t%2Ftest-save-strip-graft.sh;h=95883ddd54fabfd8be7016223e78bc638dbf4bac;hb=f0a4b3b6ef7d00e64b04dee51b8e15db71b693d3;hp=bc5306c9356c895d6ae7a771c9e4096e08250fce;hpb=69efc06fe04bad5a92f4758b09dd78f89ea92415;p=bup.git diff --git a/t/test-save-strip-graft.sh b/t/test-save-strip-graft.sh index bc5306c..95883dd 100755 --- a/t/test-save-strip-graft.sh +++ b/t/test-save-strip-graft.sh @@ -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"