diff options
author | Thomas Koutcher <thomas.koutcher@online.fr> | 2022-12-23 20:17:04 +0100 |
---|---|---|
committer | Thomas Koutcher <thomas.koutcher@online.fr> | 2022-12-23 20:17:04 +0100 |
commit | 09d028b96af6558c428fd747764898de17c4fe21 (patch) | |
tree | e9cf156cbc621efb87fafdcc36d988104f414895 | |
parent | 8f35db8a40ea721090825ba98c58ffba84ee79bf (diff) |
Make tests work from a path with symlinks
-rw-r--r-- | test/tools/libtest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tools/libtest.sh b/test/tools/libtest.sh index 34cddb0f..ceb85a33 100644 --- a/test/tools/libtest.sh +++ b/test/tools/libtest.sh @@ -24,7 +24,7 @@ IFS=' ' test="$(basename -- "$0")" -source_dir="$(cd "$(dirname -- "$0")" >/dev/null && pwd)" +source_dir="$(cd "$(dirname -- "$0")" >/dev/null && pwd -P)" base_dir="$(printf '%s\n' "$source_dir" | sed -n 's#\(.*/test\)\([/].*\)*#\1#p')" prefix_dir="$(printf '%s\n' "$source_dir" | sed -n 's#\(.*/test/\)\([/].*\)*#\2#p')" output_dir="$base_dir/tmp/$prefix_dir/$test" |