diff options
Diffstat (limited to 'test/run-test')
-rwxr-xr-x | test/run-test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run-test b/test/run-test index eed28a5..b140fbf 100755 --- a/test/run-test +++ b/test/run-test @@ -223,10 +223,10 @@ done # # 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. +# Cannot use readlink -m, as it does not exist on Mac. +# Fallback to nuclear option: noncanonical_tmp_dir=$tmp_dir -tmp_dir="`cd $oldwd ; readlink -m $tmp_dir`" - +tmp_dir="`cd $oldwd ; python -c "import os; print os.path.realpath('$tmp_dir')"`" mkdir -p $tmp_dir if [ "$basic_verify" = "true" ]; then |