diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-02-12 08:50:32 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-02-26 12:03:43 +0100 |
commit | 179590135fae639d0e874dbaf7500389c6e9e3a7 (patch) | |
tree | 7f41142252c2c709a76788bad12e07440ddfbdcc /test | |
parent | 5d0b2bb89b861a1e1927d20bc876fcaf5b88b714 (diff) |
D-Bus testing: avoid extranuous message about SIGTERM
The message was printed also when there were no children to kill
that way. Now also include the process list of hanging children.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-dbus.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-dbus.py b/test/test-dbus.py index 56f4db2e..17650c9d 100755 --- a/test/test-dbus.py +++ b/test/test-dbus.py @@ -770,7 +770,8 @@ Use check=lambda: (expr1, expr2, ...) when more than one check is needed. # Force killing of remaining children. It's still possible # that one of them quits before we get around to sending the # signal. - logging.printf("starting to kill unresponsive processes at %s", time.asctime()) + if children: + logging.printf("starting to kill unresponsive processes at %s: %s", time.asctime(), str(children)) killed = [] for pid, name in children.iteritems(): if TryKill(pid, signal.SIGKILL): |