From 087d578755ebcf84da49672d1911fc8195335297 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 3 May 2016 12:08:00 +0200 Subject: [PATCH] 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] --- tests/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run.sh b/tests/run.sh index 0109af95..ea6dc17b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -45,6 +45,10 @@ export TEST_PAUSE_ON_ERRORS # Used in tests/_runner.lua. XEPHYR=Xephyr XVFB=Xvfb 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 AWESOME_CLIENT="$root_dir/utils/awesome-client" D=:5