]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: monitor: Fix for out-of-path call master
authorPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2025 14:36:23 +0000 (15:36 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2025 15:27:44 +0000 (16:27 +0100)
commit1ac69c4de8ff7b472c3a5f2cf1d9442642e9047c
tree3db63b79aad8e93b1357b5092b2d622405fcf283
parent76c90e438f6ae5c6d4b72a4720b8c2576b2457b3
tests: monitor: Fix for out-of-path call

When called from another directory without specifying test cases, an
incorrect regexp was used to glob all tests and no test was run at all:

| # ./tests/monitor/run-tests.sh
| echo: running tests from file *.t
| ./tests/monitor/run-tests.sh: line 201: testcases/*.t: No such file or directory
| monitor: running tests from file *.t
| ./tests/monitor/run-tests.sh: line 201: testcases/*.t: No such file or directory
| json-echo: running tests from file *.t
| ./tests/monitor/run-tests.sh: line 201: testcases/*.t: No such file or directory
| json-monitor: running tests from file *.t
| ./tests/monitor/run-tests.sh: line 201: testcases/*.t: No such file or directory

Fixes: 83eaf50c36fe8 ("tests: monitor: Become $PWD agnostic")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/monitor/run-tests.sh