summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-05-12 19:32:29 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-05-12 19:32:29 -0700
commit09231a50f069d1b821684a6e01f336bd0e89174d (patch)
tree8dd8cab759ae0d46ab1015cc3bc8b11bb4e7352e /test
parent6c47db77851dcd782625ea9a43e9070da6d1ba13 (diff)
downloadconnman-09231a50f069d1b821684a6e01f336bd0e89174d.tar.gz
connman-09231a50f069d1b821684a6e01f336bd0e89174d.tar.bz2
connman-09231a50f069d1b821684a6e01f336bd0e89174d.zip
Simplify the service monitoring test script
Diffstat (limited to 'test')
-rwxr-xr-xtest/monitor-services3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/monitor-services b/test/monitor-services
index 1f8e6611..2ee8473d 100755
--- a/test/monitor-services
+++ b/test/monitor-services
@@ -7,6 +7,7 @@ import dbus.mainloop.glib
def property_changed(name, value, path, interface):
iface = interface[interface.rfind(".") + 1:]
+ ipath = path[path.rfind("/") + 1:]
if iface not in ["Manager", "Service"]:
return
if name in ["Profiles", "Services",
@@ -19,7 +20,7 @@ def property_changed(name, value, path, interface):
val = int(value)
else:
val = str(value)
- print "{%s} [%s] %s = %s" % (iface, path, name, val)
+ print "{%s} [%s] %s = %s" % (iface, ipath, name, val)
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)