]> arthur.barton.de Git - bup.git/commitdiff
Add a test to check that bup save without an index fails.
authorRob Browning <rlb@defaultvalue.org>
Mon, 11 Mar 2013 23:32:55 +0000 (18:32 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 Mar 2013 23:32:55 +0000 (18:32 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test.sh

index 4211658cef4837c3d74f834eb59a2e3a081723a7..644a07ba6a23e3838d0928e9d7de2a33c71acffd 100755 (executable)
--- 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