]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: build: Do not assume caller's CWD
authorPhil Sutter <phil@nwl.cc>
Tue, 26 Aug 2025 20:57:36 +0000 (22:57 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 11 Sep 2025 16:11:53 +0000 (18:11 +0200)
Cover for being called from a different directory by changing into the
test suite's directory first.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/build/run-tests.sh

index 674383cb6cc7414c10c0d67fd7dc302391ece148..a5e026a97dd5b8aeba6c1b651b8c3119afcdff96 100755 (executable)
@@ -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