mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
tests: Don't continue if setup commands fail
Because POSIX sh was, with hindsight, not a particularly well-designed programming language, if we don't 'set -e', then we'll respond to failure of a setup command such as cd by carrying on regardless. Signed-off-by: Simon McVittie <smcv@debian.org> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2009>
This commit is contained in:
parent
7af1043865
commit
a49c98d8d8
@ -3,4 +3,4 @@ Type=session
|
||||
# Can't use TestEnvironment for COGL_TEST_VERBOSE until there's a solution
|
||||
# for https://gitlab.gnome.org/GNOME/gnome-desktop-testing/-/issues/1,
|
||||
# and anyway we'd still need to use the shell to 'cd'
|
||||
Exec=sh -c "export COGL_TEST_VERBOSE=1; cd @libexecdir@/installed-tests/mutter-@apiversion@/cogl/conform; xvfb-run -a -s '+iglx -noreset' ./run-tests.sh ./config.env ./test-conformance ./unit-tests"
|
||||
Exec=sh -ec "export COGL_TEST_VERBOSE=1; cd @libexecdir@/installed-tests/mutter-@apiversion@/cogl/conform; xvfb-run -a -s '+iglx -noreset' ./run-tests.sh ./config.env ./test-conformance ./unit-tests"
|
||||
|
@ -4,6 +4,6 @@ Description=All Mutter tests
|
||||
# a solution for
|
||||
# https://gitlab.gnome.org/GNOME/gnome-desktop-testing/-/issues/1,
|
||||
# and anyway that wouldn't be sufficient to handle XDG_RUNTIME_DIR
|
||||
Exec=sh -c 'env GSETTINGS_BACKEND=memory XDG_RUNTIME_DIR="$(mktemp -d -t mutter-@apiversion@-all-tests-XXXXXX)" @libexecdir@/installed-tests/mutter-@apiversion@/meta-dbus-runner.py xvfb-run -a -s "+iglx -noreset" -- @libexecdir@/installed-tests/mutter-@apiversion@/mutter-test-runner --all'
|
||||
Exec=sh -ec 'env GSETTINGS_BACKEND=memory XDG_RUNTIME_DIR="$(mktemp -d -t mutter-@apiversion@-all-tests-XXXXXX)" @libexecdir@/installed-tests/mutter-@apiversion@/meta-dbus-runner.py xvfb-run -a -s "+iglx -noreset" -- @libexecdir@/installed-tests/mutter-@apiversion@/mutter-test-runner --all'
|
||||
Type=session
|
||||
Output=TAP
|
||||
|
Loading…
Reference in New Issue
Block a user