From: Oei, Yung-Chin Date: Mon, 3 Sep 2012 16:50:30 +0000 (+0100) Subject: t/test.sh: fix test failure when $top_dir has a dot-name X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=71a18a1b57d2061626153165108a9623ad8c4a02;p=packages%2Fb%2Fbup.git t/test.sh: fix test failure when $top_dir has a dot-name 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 Signed-off-by: Rob Browning --- diff --git a/t/test.sh b/t/test.sh index de381dc..8d0ffac 100755 --- 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