From: Jan-Simon Moeller Date: Thu, 12 Oct 2017 12:45:24 +0000 (+0000) Subject: Merge "Adapt service checks for gfx and nogfx case" X-Git-Tag: 4.99.2~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=52938bb9711ec5735d35665b3c99a89ad528a8c0;p=src%2Fqa-testdefinitions.git Merge "Adapt service checks for gfx and nogfx case" --- 52938bb9711ec5735d35665b3c99a89ad528a8c0 diff --cc common/scripts/service-check-gfx.sh index dfde77b,f9bfa87..726035a --- a/common/scripts/service-check-gfx.sh +++ b/common/scripts/service-check-gfx.sh @@@ -6,11 -9,9 +9,12 @@@ REQUIREDSERVICES="afm-system-daemon.ser 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" + echo -e "\n\n########## Test for service ${i} being active ##########\n\n" + systemctl is-active ${i} >/dev/null 2>&1 if [ $? -eq 0 ] ; then RESULT="pass" diff --cc common/scripts/service-check-nogfx.sh index e893cdb,5b74ff1..16ecbee mode 100755,100644..100644 --- a/common/scripts/service-check-nogfx.sh +++ b/common/scripts/service-check-nogfx.sh @@@ -6,11 -9,9 +9,12 @@@ REQUIREDSERVICES="afm-system-daemon.ser 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" + echo -e "\n\n########## Test for service ${i} being active ##########\n\n" + systemctl is-active ${i} >/dev/null 2>&1 if [ $? -eq 0 ] ; then RESULT="pass"