tests/run.sh: allow to pass full file name
This is easier with shell completion.
This commit is contained in:
parent
8e97ae51c3
commit
8f8094b57e
10
tests/run.sh
10
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.
|
||||
|
|
Loading…
Reference in New Issue