From: Jan-Simon Möller Date: Thu, 12 Oct 2017 10:05:51 +0000 (+0200) Subject: Add 5 sec delay for service check X-Git-Tag: 4.99.2~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=c6fb12f5116062d3ebdf2502800d1acd3cdb55f6;p=src%2Fqa-testdefinitions.git Add 5 sec delay for service check to ensure all services (weston/homescreen) are really up as they might still be starting once we reach the login prompt. Change-Id: I1e16146704f1b11d576ffab1524b279e4be5a82c Bug-AGL: SPEC-950 Signed-off-by: Jan-Simon Möller --- diff --git a/common/scripts/service-check-gfx.sh b/common/scripts/service-check-gfx.sh index 2a5353b..dfde77b 100755 --- a/common/scripts/service-check-gfx.sh +++ b/common/scripts/service-check-gfx.sh @@ -6,6 +6,9 @@ REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.serv ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" RESULT="unknown" +# add delay for services to fully start +sleep 5 + for i in ${ALL} ; do echo -e "\n########## Test for service ${i} being active ##########\n" systemctl is-active ${i} >/dev/null 2>&1 diff --git a/common/scripts/service-check-nogfx.sh b/common/scripts/service-check-nogfx.sh index 62d1b3d..e893cdb 100755 --- a/common/scripts/service-check-nogfx.sh +++ b/common/scripts/service-check-nogfx.sh @@ -6,6 +6,9 @@ REQUIREDSERVICES="afm-system-daemon.service afm-user-daemon.service connman.serv ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" RESULT="unknown" +# add delay for services to fully start +sleep 5 + for i in ${ALL} ; do echo -e "\n########## Test for service ${i} being active ##########\n" systemctl is-active ${i} >/dev/null 2>&1