X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Fagl-screenshot-test.sh;h=b0c79cd03b3082518fa66a7f37c94c16bb498053;hb=5bec50058c8773be1bbf5f7c5a5f665cad4df884;hp=b9d934f104bc1fced8652cd7f7e7622d8c162651;hpb=36bfc4c76c9c1f44c3232baa6d8576db8bc488d2;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/agl-screenshot-test.sh b/common/scripts/agl-screenshot-test.sh index b9d934f..b0c79cd 100755 --- a/common/scripts/agl-screenshot-test.sh +++ b/common/scripts/agl-screenshot-test.sh @@ -34,6 +34,20 @@ 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 + +# some take veeeeery long +if ! grep -q 'Usable area:' /run/platform/display/compositor.log ; then + # e.g. qemu-system-arm takes veeery loooong + echo "Waiting for compositor to initialize (+240sec)." + sleep 240 +fi + +# giving up now if ! grep -q 'Usable area:' /run/platform/display/compositor.log ; then echo "Marker ('Usable area:') not found. Dumping log." echo "##################################" @@ -53,6 +67,9 @@ fi #echo "Found agl-screenshoooter in $AGL_SCREENSHOOTER" rm -rf agl-screenshot-*.png +# give it a bit more time to display +sleep 30 + if $AGL_SCREENSHOOTER; then echo "Screenshot taken" else