diff options
| author | 2014-08-14 18:39:26 +0000 | |
|---|---|---|
| committer | 2014-08-12 19:23:43 +0000 | |
| commit | 0cde7da99fe4a0874934ccd3a28fc4bc19197ff7 (patch) | |
| tree | fc687c14d0963addcc363ca60610446491de2173 | |
| parent | 078f4ea927b3259d698ca3dd542a096943e2cccd (diff) | |
| parent | 3a12cfeb539b64ae116eb6313adca802457ba6fb (diff) | |
Merge "ART: Fix run-test in case of relative TMPDIR"
| -rwxr-xr-x | test/run-test | 8 |
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 |