Extend wait time for compositor restart
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 10 May 2021 20:27:10 +0000 (22:27 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 10 May 2021 20:27:10 +0000 (22:27 +0200)
This fixes slow (e.g. mesa) startup.

Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: I10ef1e14ca97370c59984b5d848b90e6cbb9d40b

common/scripts/agl-screenshot-test.sh

index b9d934f..8005e5f 100755 (executable)
@@ -34,6 +34,12 @@ if ! grep -q 'Usable area:' /run/platform/display/compositor.log ; then
         echo "Waiting for compositor to initialize (+60sec)."
        sleep 60
 fi
+if ! grep -q 'Usable area:' /run/platform/display/compositor.log ; then
+# e.g. qemu-system-arm takes loooong
+        echo "Waiting for compositor to initialize (+120sec)."
+       sleep 120
+fi
+
 if ! grep -q 'Usable area:' /run/platform/display/compositor.log ; then
        echo "Marker ('Usable area:') not found. Dumping log."
        echo "##################################"