From 7bdf10e68ba849c9314b3c139a434e27efd1e192 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 22 Feb 2021 21:38:56 +0100 Subject: test: Allow prefixing test names with 'tests/'. It's handy to be able to run `./test tests/accountd*` or similar. --- test | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test b/test index 81d910c..c1341e9 100755 --- a/test +++ b/test @@ -62,6 +62,7 @@ if [ $# -eq 0 ]; then done else for t in "$@"; do + t="${t#tests/}" if [ -f "tests/$t" ]; then TESTS+=( "$t" ) else -- cgit v1.2.3