tests: fail if $AWESOME does not exist / is not executable (#872)

Without this the stdout/stderr rediraction when launching it makes the
error regarding the "program not found" disappear(?!).

[ci skip]
This commit is contained in:
Daniel Hahler 2016-05-03 12:08:00 +02:00
parent 7bd9cd7fd1
commit 087d578755
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ export TEST_PAUSE_ON_ERRORS # Used in tests/_runner.lua.
XEPHYR=Xephyr XEPHYR=Xephyr
XVFB=Xvfb XVFB=Xvfb
AWESOME=$root_dir/build/awesome AWESOME=$root_dir/build/awesome
if ! [ -x "$AWESOME" ]; then
echo "$AWESOME is not executable." >&2
exit 1
fi
RC_FILE=$root_dir/build/awesomerc.lua RC_FILE=$root_dir/build/awesomerc.lua
AWESOME_CLIENT="$root_dir/utils/awesome-client" AWESOME_CLIENT="$root_dir/utils/awesome-client"
D=:5 D=:5