]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix secondary_http suite for test/run called with relative path
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 11 Jul 2021 19:38:46 +0000 (21:38 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 12 Jul 2021 20:42:42 +0000 (22:42 +0200)
test/run

index 1da8315f39053df74908240e25027c57feb56a17..b6fa820692972d3fe830ff21105d1a8fba16ffb7 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -478,8 +478,9 @@ COMPILER_TYPE_GCC=false
 COMPILER_USES_LLVM=false
 COMPILER_USES_MINGW=false
 
-readonly HTTP_CLIENT="$(dirname $0)/http-client"
-readonly HTTP_SERVER="$(dirname $0)/http-server"
+ABS_ROOT_DIR="$(cd $(dirname "$0"); pwd)"
+readonly HTTP_CLIENT="${ABS_ROOT_DIR}/http-client"
+readonly HTTP_SERVER="${ABS_ROOT_DIR}/http-server"
 
 HOST_OS_APPLE=false
 HOST_OS_LINUX=false