When no bluetooth dongle is present, there is a timing issue which let
the service fail.
So if no bluetooth tag is present, skip the service test instead of
failling.
Bug-AGL: SPEC-2907
Change-Id: I10755ec698ab632ffcf0eec18ebe6bc41b1b5ec1
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
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
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}