summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-10-12 12:05:51 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-10-12 12:05:51 +0200
commitc6fb12f5116062d3ebdf2502800d1acd3cdb55f6 (patch)
treebd6b8a5161238195c4dd6b2a4d2869aca13e06a5 /common
parenta2a853be927de72bf582efb8da256159f5aeaf68 (diff)
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 <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/service-check-gfx.sh3
-rwxr-xr-xcommon/scripts/service-check-nogfx.sh3
2 files changed, 6 insertions, 0 deletions
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