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.
This commit is contained in:
Daniel Hahler 2019-09-13 16:02:22 +02:00 committed by GitHub
parent 0cbf536269
commit a7674f2359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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"