From 7c05001f9d052cdbdc8eb1e96d0b972f4726b885 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 26 Aug 2025 22:57:36 +0200 Subject: [PATCH] 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 --- tests/build/run-tests.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3