Add 5 sec delay for service check 43/11243/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 12 Oct 2017 10:05:51 +0000 (12:05 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 12 Oct 2017 10:05:51 +0000 (12:05 +0200)
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 <jsmoeller@linuxfoundation.org>
common/scripts/service-check-gfx.sh
common/scripts/service-check-nogfx.sh

index 2a5353b..dfde77b 100755 (executable)
@@ -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
index 62d1b3d..e893cdb 100755 (executable)
@@ -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