From 5dbb5b499262b97b2d69683e0b9625742750a316 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 3 Jan 2019 13:43:54 +0100 Subject: [PATCH] tests/run.sh: fix handling of test args Fixes `tests/run.sh tests/test-signal.lua`. --- tests/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index 2aa73eea1..99cb2e2b5 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -216,9 +216,10 @@ for f in $tests; do continue fi fi + # Make the filename absolute if it is not. - if [ "$f#/" = "$f" ]; then - f="$source_dir/$f" + if [ "${f#/}" = "$f" ]; then + f="$PWD/$f" fi # Execute the test file in awesome.