For master do not check connman.service
[src/qa-testdefinitions.git] / common / scripts / service-check-gfx.sh
index e4804e3..96a10f2 100755 (executable)
@@ -19,8 +19,8 @@ while getopts ":b:d:" option; do
     esac
 done
 
-REQUIREDSOCKETS="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"
@@ -42,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