tests/kvm: Properly capture the test status code

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2862>
This commit is contained in:
Sebastian Wick 2023-02-20 16:30:30 +01:00 committed by Marge Bot
parent a41c83be4f
commit 8ab2cbedd7

View File

@ -17,6 +17,7 @@ mkdir -p -m 700 $XDG_RUNTIME_DIR
glib-compile-schemas $GSETTINGS_SCHEMA_DIR
"$WRAPPER" $WRAPPER_ARGS "${@:4}"
status=0
"$WRAPPER" $WRAPPER_ARGS "${@:4}" || status=$?
echo $? > $TEST_RESULT
echo $status > $TEST_RESULT