6 while getopts ":b:d:" option; do
9 if [[ $OPTARG = -* ]]; then
21 REQUIREDSOCKETS="dbus.socket security-manager.socket"
22 REQUIREDSERVICES="afm-system-daemon.service connman.service ofono.service weston.service bluetooth.service"
24 ALL="${REQUIREDSOCKETS} ${REQUIREDSERVICES}"
27 # add delay for services to fully start
31 echo -e "\n\n########## Test for service ${i} being active ##########\n\n"
33 if [[ ${i} == "weston.service" ]]; then
34 if [[ ${DEVICE_TAGS} != *"screen"* ]] || [[ ${BUILD_TAGS} != *"screen"* ]]; then
38 if [[ -z $RESULT ]]; then
39 systemctl is-active ${i} >/dev/null 2>&1
40 if [ $? -eq 0 ] ; then
47 lava-test-case ${i} --result ${RESULT}
48 systemctl status ${i} || true
51 echo -e "\n\n########## Result for service ${i} : $RESULT ##########\n\n"
54 echo "------------------------------------------------"
55 echo "All systemd units:"
56 echo "------------------------------------------------"
57 systemctl list-units || true
58 echo "------------------------------------------------"
59 echo "Only the failed systemd units:"
60 echo "------------------------------------------------"
61 ( systemctl list-units | grep failed ) || true