SPEC-2970: Do not fail ofone and bluetooth services if bluetooth tag is non present
[src/qa-testdefinitions.git] / common / scripts / service-check-gfx.sh
index e4804e3..d7cfd85 100755 (executable)
@@ -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