From: Avery Pennarun Date: Sat, 13 Nov 2010 05:58:03 +0000 (-0800) Subject: t/test.sh: use /bin/pwd instead of just pwd. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=23b2520bc3e19938a85d13acc2fb1794e3fb71a3;p=packages%2Fb%2Fbup.git t/test.sh: use /bin/pwd instead of just pwd. $(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 --- diff --git a/t/test.sh b/t/test.sh index a69addf..b9c4ec9 100755 --- 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()