Merge pull request #2536 from blueyed/test

tests/run.sh: fix handling of test args
This commit is contained in:
mergify[bot] 2019-01-04 22:56:46 +00:00 committed by GitHub
commit ded7950c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.