Change regular pyagl invocation to nohw
[src/qa-testdefinitions.git] / common / scripts / service-check-nogfx.sh
index 6515377..4828805 100755 (executable)
@@ -2,6 +2,7 @@
 
 export LANG=C
 export TERM=dumb
+export COLUMNS=1000
 
 REQUIREDSOCKETS="dbus.socket security-manager.socket"
 REQUIREDSERVICES="afm-system-daemon.service connman.service ofono.service bluetooth.service"
@@ -20,6 +21,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
 
     lava-test-case ${i} --result ${RESULT}