For master do not check connman.service
[src/qa-testdefinitions.git] / common / scripts / service-check-gfx.sh
index 9064dbd..96a10f2 100755 (executable)
@@ -2,6 +2,7 @@
 
 export LANG=C
 export TERM=dumb
+export COLUMNS=1000
 
 while getopts ":b:d:" option; do
     case "${option}" in
@@ -18,8 +19,8 @@ while getopts ":b:d:" option; do
     esac
 done
 
-REQUIREDSOCKETS="cynara.socket dbus.socket security-manager.socket"
-REQUIREDSERVICES="afm-system-daemon.service connman.service ofono.service weston.service bluetooth.service"
+REQUIREDSOCKETS="dbus.socket"
+REQUIREDSERVICES=""
 
 ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
 RESULT="unknown"
@@ -41,6 +42,16 @@ for i in ${ALL} ; do
             RESULT="pass"
         else
             RESULT="fail"
+            if [[ ${i} == "bluetooth.service" ]]; then
+                if [[ ${DEVICE_TAGS} != *"bluetooth"* ]] || [[ ${BUILD_TAGS} != *"bluetooth"* ]]; then
+                    RESULT="skip"
+                fi
+            fi
+            if [[ ${i} == "ofono.service" ]]; then
+                if [[ ${DEVICE_TAGS} != *"bluetooth"* ]] || [[ ${BUILD_TAGS} != *"bluetooth"* ]]; then
+                    RESULT="skip"
+                fi
+            fi
         fi
     fi
 
@@ -60,4 +71,4 @@ echo "Only the failed systemd units:"
 echo "------------------------------------------------"
 ( systemctl list-units | grep failed ) || true
 
-exit 0
\ No newline at end of file
+exit 0