projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e9fd04
)
restoring absolute paths to both TEMPDIR and TESTDIR in tests/basic.
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Thu, 5 Feb 2009 19:29:42 +0000
(14:29 -0500)
committer
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Thu, 5 Feb 2009 19:29:42 +0000
(14:29 -0500)
tests/basic
patch
|
blob
|
history
diff --git
a/tests/basic
b/tests/basic
index b0b5e9bc42522d169009fcee69e8827016f73774..470fffa9ff73c73d95d0ea99c9441c7991232fd7 100755
(executable)
--- a/
tests/basic
+++ b/
tests/basic
@@
-17,7
+17,8
@@
set -e
# piped commands should return the code of the first non-zero return
set -o pipefail
# piped commands should return the code of the first non-zero return
set -o pipefail
-export TESTDIR=$(dirname "$0")
+# make sure the TESTDIR is an absolute path, not a relative one.
+export TESTDIR=$(cd $(dirname "$0") && pwd)
source "$TESTDIR"/common
source "$TESTDIR"/common
@@
-91,7
+92,7
@@
trap failed_cleanup EXIT
# make temp dir
mkdir -p "$TESTDIR"/tmp
# make temp dir
mkdir -p "$TESTDIR"/tmp
-TEMPDIR=$(mktemp -d
${TMPDIR:-$(cd "$TESTDIR" && printf "%s" $(pwd)/tmp)}/monkeyspheretest.XXXXXXX)
+TEMPDIR=$(mktemp -d
"${TMPDIR:-$TESTDIR/tmp}/monkeyspheretest.XXXXXXX)"
# Use the local copy of executables first, instead of system ones.
# This should help us test without installing.
# Use the local copy of executables first, instead of system ones.
# This should help us test without installing.