diff --git a/src/tests/x11-test.sh b/src/tests/x11-test.sh index d95b2460f..c826a00f7 100755 --- a/src/tests/x11-test.sh +++ b/src/tests/x11-test.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -ex MUTTER="$1" @@ -30,8 +30,8 @@ sleep 4 echo \# Replacing existing mutter with a new instance > /dev/stderr $MUTTER --x11 --replace --mutter-plugin="$MUTTER_TEST_PLUGIN_PATH" & -echo \# Launched with pid $MUTTER2_PID MUTTER2_PID=$! +echo \# Launched with pid $MUTTER2_PID wait $MUTTER1_PID echo \# Waiting for the second mutter to finish loading