From 8f8094b57e7350a0ec25da87e0c1eda2963fbee9 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 26 Dec 2016 19:09:26 +0100 Subject: [PATCH] tests/run.sh: allow to pass full file name This is easier with shell completion. --- tests/run.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index 808a06323..6413ed8e7 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -199,9 +199,13 @@ for f in $tests; do start_awesome if [ ! -r "$f" ]; then - echo "===> ERROR $f is not readable! <===" - ((errors++)) - continue + if [ -r "${f#tests/}" ]; then + f=${f#tests/} + else + echo "===> ERROR $f is not readable! <===" + ((errors++)) + continue + fi fi # Send the test file to awesome.