X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fexecute.sh;h=152b0524e6e5412b34e7a153536a770340eff43f;hb=fe58df83b2d72c4beceb101eb9cffcc5442f3d6e;hp=35b4939a97dc24c8b385b4d669b3624faf80814b;hpb=c8cad04a14bbf10f9a70a3317bf53c6676d1da28;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/automated-tests/execute.sh b/automated-tests/execute.sh index 35b4939..152b052 100755 --- a/automated-tests/execute.sh +++ b/automated-tests/execute.sh @@ -187,6 +187,19 @@ else done echo $1 not found fi + + # Kill off any dangling or sleeping dbus sessions that we would have created + cgroup=$(awk -F ':' '$2 == "name=systemd" { print $3 }' /proc/self/cgroup) + if [ -n "$cgroup" ] ; then + for pid in $(cat /sys/fs/cgroup/systemd/$cgroup/tasks 2>/dev/null); do + comm=$(cat /proc/$pid/comm 2>/dev/null) + case "$comm" in + dbus-daemon|dbus-launch) + kill $pid + ;; + esac + done + fi fi if [ -f summary.xml ] ; then