From: Phil Sutter Date: Tue, 26 Aug 2025 20:57:36 +0000 (+0200) Subject: tests: build: Do not assume caller's CWD X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c05001f9d052cdbdc8eb1e96d0b972f4726b885;p=thirdparty%2Fnftables.git tests: build: Do not assume caller's CWD Cover for being called from a different directory by changing into the test suite's directory first. Signed-off-by: Phil Sutter --- diff --git a/tests/build/run-tests.sh b/tests/build/run-tests.sh index 674383cb..a5e026a9 100755 --- a/tests/build/run-tests.sh +++ b/tests/build/run-tests.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd $(dirname $0) + log_file="$(pwd)/tests.log" dir=../.. argument=( --without-cli --with-cli=linenoise --with-cli=editline --enable-debug --with-mini-gmp