From: Daniel Kahn Gillmor Date: Wed, 4 Feb 2009 20:03:25 +0000 (-0500) Subject: tests/basic ensure that the directory is actually an absolute path, not a relative... X-Git-Tag: monkeysphere_0.23~121^2~9 X-Git-Url: https://codewiz.org/gitweb?p=monkeysphere.git;a=commitdiff_plain;h=8eefc1b98f645d1462442cdb357bfcfe06a9c1e4;hp=de36d3b27039141ba6402cb91a19a1d852185a92 tests/basic ensure that the directory is actually an absolute path, not a relative one. --- diff --git a/tests/basic b/tests/basic index 0cad727..455c057 100755 --- a/tests/basic +++ b/tests/basic @@ -90,7 +90,7 @@ trap failed_cleanup EXIT # make temp dir mkdir -p "$TESTDIR"/tmp -TEMPDIR=$(mktemp -d ${TMPDIR:-"$TESTDIR"/tmp}/monkeyspheretest.XXXXXXX) +TEMPDIR=$(mktemp -d ${TMPDIR:-$(cd "$TESTDIR" && printf "%s" $(pwd)/tmp)}/monkeyspheretest.XXXXXXX) # Use the local copy of executables first, instead of system ones. # This should help us test without installing.