X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest-rm-between-index-and-save.sh;h=67c5b8ad89c22f341c9c43f70f8a53c92a21a34e;hb=00fb1f1b2a53935ca7d5ce95ea4cf56b7f9bcc3d;hp=ee0cd0ac31a2f0c868fd3db5584cc238592b3c72;hpb=be300ec31e640b35a19d8ccb6b43dd3471054354;p=bup.git diff --git a/t/test-rm-between-index-and-save.sh b/t/test-rm-between-index-and-save.sh index ee0cd0a..67c5b8a 100755 --- a/t/test-rm-between-index-and-save.sh +++ b/t/test-rm-between-index-and-save.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -. ./wvtest-bup.sh +. ./wvtest-bup.sh || exit $? set -o pipefail @@ -61,15 +61,16 @@ WVPASS rmdir "$D"/foo # with directories, bup notices that foo is missing, so it fails # (complete with delayed error) WVFAIL bup save -n save-fail-missing "$D" -# ... so "foo" is absent from "bup ls" +# ...but foo is still saved since it was just fine in the index WVPASSEQ "$(bup ls -AF save-fail-missing/latest/$TOP/$D/)" "bar/ -baz/" +baz/ +foo/" # Index again: WVPASS bup tick WVPASS bup index -ux "$D" # no non-zero-exitcode anymore: WVPASS bup save -n save-fail-missing "$D" -# foo is (still...) missing, of course: +# foo is now gone WVPASSEQ "$(bup ls -AF save-fail-missing/latest/$TOP/$D/)" "bar/ baz/"