Add some more output in case the service is not up to assist debugging 77/11077/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 29 Sep 2017 10:19:13 +0000 (12:19 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 29 Sep 2017 10:22:20 +0000 (12:22 +0200)
Change-Id: Ia61db614df402ccf9daf37ef685a002b08e3d824
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
common/scripts/service-check.sh

index 6ffa6f6..4dc0a25 100755 (executable)
@@ -7,12 +7,15 @@ ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
 RESULT="unknown"
 
 for i in ${ALL} ; do
+    echo "########## Test for service ${i} being active ##########"
     systemctl is-active ${i} >/dev/null 2>&1
     if [ $? -eq 0 ] ; then
         RESULT="pass"
     else
+        systemctl status ${i} || true
         RESULT="fail"
     fi
+    echo "########## Result for service ${i} : $RESULT ##########"
     lava-test-case ${i} --result ${RESULT}
 done