tests/run.sh: fix handling of test args

Fixes `tests/run.sh tests/test-signal.lua`.
This commit is contained in:
Daniel Hahler 2019-01-03 13:43:54 +01:00
parent a2cd918603
commit 5dbb5b4992
1 changed files with 3 additions and 2 deletions

View File

@ -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.