From: Rob Browning Date: Mon, 11 Mar 2013 23:32:55 +0000 (-0500) Subject: Add a test to check that bup save without an index fails. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e498556f877d4a192a2ecb50f735658e22cb7164;p=packages%2Fb%2Fbup.git Add a test to check that bup save without an index fails. Signed-off-by: Rob Browning --- diff --git a/t/test.sh b/t/test.sh index 4211658..644a07b 100755 --- a/t/test.sh +++ b/t/test.sh @@ -398,6 +398,18 @@ f" rm $EXCLUDE_FILE +WVSTART "save (no index)" +( + set -e + tmp=save-no-index.tmp + force-delete $tmp + mkdir $tmp + export BUP_DIR="$(pwd)/$tmp/bup" + WVPASS bup init + WVFAIL bup save -n nothing / + rm -r "$tmp" +) || WVFAIL + WVSTART "save --strip" ( tmp=graft-points.tmp