]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
test-lib: Canonicalize test_dir.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Feb 2016 15:59:38 +0000 (16:59 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 21 Feb 2016 21:46:07 +0000 (22:46 +0100)
This makes it easier to write tests. The realpath command is
available at least on Linux and *BSD.

t/test-lib.sh

index 0e702b53c9b4c4150418dc0e2a07e55949817b04..99e575d3b66d0f54e9746647eee1af4eba84fa2c 100644 (file)
@@ -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"