summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-08-14 18:39:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-08-12 19:23:43 +0000
commit0cde7da99fe4a0874934ccd3a28fc4bc19197ff7 (patch)
treefc687c14d0963addcc363ca60610446491de2173
parent078f4ea927b3259d698ca3dd542a096943e2cccd (diff)
parent3a12cfeb539b64ae116eb6313adca802457ba6fb (diff)
Merge "ART: Fix run-test in case of relative TMPDIR"
-rwxr-xr-xtest/run-test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/run-test b/test/run-test
index 496f7d1b53..b8e40d9328 100755
--- a/test/run-test
+++ b/test/run-test
@@ -206,6 +206,14 @@ while true; do
break
fi
done
+
+# tmp_dir may be relative, resolve.
+#
+# Cannot use realpath, as it does not exist on Mac.
+# Cannot us a simple "cd", as the path might not be created yet.
+# Use -m option of readlink: canonicalizes, but allows non-existing components.
+tmp_dir="`cd $oldwd ; readlink -m $tmp_dir`"
+
mkdir -p $tmp_dir
if [ "$basic_verify" = "true" ]; then