7 REQUIREDSOCKETS="dbus.socket"
10 ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
13 # add delay for services to fully start
17 echo -e "\n\n########## Test for service ${i} being active ##########\n\n"
19 systemctl is-active ${i} >/dev/null 2>&1
20 if [ $? -eq 0 ] ; then
24 if [[ ${i} == "bluetooth.service" ]]; then
25 if [[ ${DEVICE_TAGS} != *"bluetooth"* ]] || [[ ${BUILD_TAGS} != *"bluetooth"* ]]; then
29 if [[ ${i} == "ofono.service" ]]; then
30 if [[ ${DEVICE_TAGS} != *"bluetooth"* ]] || [[ ${BUILD_TAGS} != *"bluetooth"* ]]; then
36 lava-test-case ${i} --result ${RESULT}
37 systemctl status ${i} || true
40 echo -e "\n\n########## Result for service ${i} : $RESULT ##########\n\n"
44 echo "------------------------------------------------"
45 echo "All systemd units:"
46 echo "------------------------------------------------"
47 systemctl list-units || true
48 echo "------------------------------------------------"
49 echo "Only the failed systemd units:"
50 echo "------------------------------------------------"
51 ( systemctl list-units | grep failed ) || true