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