]> arthur.barton.de Git - bup.git/commitdiff
t/test.sh: fix test failure when $top_dir has a dot-name
authorOei, Yung-Chin <yungchin@yungchin.nl>
Mon, 3 Sep 2012 16:50:30 +0000 (17:50 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 22 Dec 2012 17:35:41 +0000 (11:35 -0600)
Fix the admittedly rare case where we're running tests from a tree
that has a dot-name at its base, which only 'bup ls -a' will print.
This problem was originally encountered on a system that keeps mounts
under '/.autofs/'.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test.sh

index de381dc670eb749d23243052935b132411ba46c0..8d0ffac9fd6d05bb0b7b320708d6f7770b36f23e 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -509,7 +509,7 @@ WVSTART "save disjoint top-level directories"
     WVPASS bup init
     WVPASS bup index -vu $(pwd)/$D/x "$tmpdir"
     WVPASS bup save -t -n src $(pwd)/$D/x "$tmpdir"
-    WVPASSEQ "$(bup ls src/latest)" \
+    WVPASSEQ "$(bup ls -a src/latest)" \
 "$top_dir/
 tmp/"
 ) || WVFAIL