X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=automated-tests%2Fexecute.sh;h=7703340d40120c4061b2c8c6139110ff4f9fbf8f;hb=HEAD;hp=35b4939a97dc24c8b385b4d669b3624faf80814b;hpb=0e6913888355655cab0dabc0e9cb1666c61dc378;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.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