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 continue
fi fi
fi fi
# Make the filename absolute if it is not. # Make the filename absolute if it is not.
if [ "$f#/" = "$f" ]; then if [ "${f#/}" = "$f" ]; then
f="$source_dir/$f" f="$PWD/$f"
fi fi
# Execute the test file in awesome. # Execute the test file in awesome.