]> arthur.barton.de Git - bup.git/commitdiff
t/test.sh: use /bin/pwd instead of just pwd.
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 13 Nov 2010 05:58:03 +0000 (21:58 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 13 Nov 2010 05:58:47 +0000 (21:58 -0800)
$(pwd) seems to sometimes lie, because the shell uses the $PWD environment
variable.  If your PWD is a symlink, this can cause the test to fail since
bup figures out the path using a real call to getcwd().

Problem reported by Zenaan Harkness, though he never did acknowledge if this
fixes his problem :(

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
t/test.sh

index a69addfbd92a64fcb87f62845ed652b6b7404474..b9c4ec99975c29e41c333fcbf0215e685a9e2ea0 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -2,7 +2,7 @@
 . wvtest.sh
 #set -e
 
-TOP="$(pwd)"
+TOP="$(/bin/pwd)"
 export BUP_DIR="$TOP/buptest.tmp"
 
 bup()