aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-22 21:38:56 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-22 22:37:00 +0100
commit7bdf10e68ba849c9314b3c139a434e27efd1e192 (patch)
tree2df998ddeac5ea160662a4db7ffe54c9f368babf /test
parent045d169339c5b973f0924269e6ca485e48de3668 (diff)
test: Allow prefixing test names with 'tests/'.
It's handy to be able to run `./test tests/accountd*` or similar.
Diffstat (limited to 'test')
-rwxr-xr-xtest1
1 files changed, 1 insertions, 0 deletions
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