From a7674f2359d6857be491c45ecc68d68fe2ee1c79 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 13 Sep 2019 16:02:22 +0200 Subject: [PATCH] tests/run.sh: output "awesome --version" (#2872) Might be good to have a short version of it (single line), but extra lines are indented, so this seems to be OK. This helps / shows when the built version is not up-to-date (e.g. after git-bisect), and serves as a basic check that it can be run in the first place. --- tests/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index bfb85a03..a1dc3c05 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -79,8 +79,8 @@ export TEST_PAUSE_ON_ERRORS # Used in tests/_runner.lua. XEPHYR=Xephyr XVFB=Xvfb AWESOME=$build_dir/awesome -if ! [ -x "$AWESOME" ]; then - echo "$AWESOME is not executable." >&2 +if ! $AWESOME --version; then + echo "$AWESOME cannot be run." >&2 exit 1 fi AWESOME_CLIENT="$source_dir/utils/awesome-client"