tests/run.sh: allow to pass full file name
This is easier with shell completion.
This commit is contained in:
parent
8e97ae51c3
commit
8f8094b57e
|
@ -199,10 +199,14 @@ for f in $tests; do
|
|||
start_awesome
|
||||
|
||||
if [ ! -r "$f" ]; then
|
||||
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.
|
||||
DISPLAY=$D "$AWESOME_CLIENT" 2>&1 < "$f"
|
||||
|
|
Loading…
Reference in New Issue