X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Fservice-check-nogfx.sh;h=48288052b61e6a3ffdbc822912d5c4a1c729890f;hb=18c1f7790b59adb2c798a68e9c3f0a2b24558986;hp=16ecbee0112c663af84bf56067f47ccfbb579909;hpb=52938bb9711ec5735d35665b3c99a89ad528a8c0;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/service-check-nogfx.sh b/common/scripts/service-check-nogfx.sh old mode 100644 new mode 100755 index 16ecbee..4828805 --- a/common/scripts/service-check-nogfx.sh +++ b/common/scripts/service-check-nogfx.sh @@ -2,8 +2,9 @@ export LANG=C export TERM=dumb +export COLUMNS=1000 -REQUIREDSOCKETS="cynara.socket dbus.socket security-manager.socket" +REQUIREDSOCKETS="dbus.socket security-manager.socket" REQUIREDSERVICES="afm-system-daemon.service connman.service ofono.service bluetooth.service" ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}" @@ -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} @@ -40,4 +51,4 @@ echo "------------------------------------------------" ( systemctl list-units | grep failed ) || true -exit 0 \ No newline at end of file +exit 0