From: Andre Noll Date: Sun, 7 Feb 2016 15:59:38 +0000 (+0100) Subject: test-lib: Canonicalize test_dir. X-Git-Tag: v0.5.6~41^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=0420ea5ff77bc809c404aec49e6702ae2b7cc524 test-lib: Canonicalize test_dir. This makes it easier to write tests. The realpath command is available at least on Linux and *BSD. --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 0e702b53..99e575d3 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -272,7 +272,7 @@ fixup_dirs() { local wd=$(pwd) - test_dir="$wd/${0%/*}" + test_dir="$(realpath $wd/${0%/*})" test_audio_file_dir="$test_dir/audio_files" [[ -z "$o_results_dir" ]] && o_results_dir="$test_dir/test-results"