summaryrefslogtreecommitdiffstats
path: root/test/apitest
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 13:56:20 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-06-23 13:56:20 +0000
commit7d8dc82e027404d688639c0aea2909c131f221f4 (patch)
treea1d787bc37deed5e4871a8852382eb372b9b3945 /test/apitest
parent1af3ab21273cf272b3825d49a0d199b0b0a5a623 (diff)
apitest: fixed signal handler
Diffstat (limited to 'test/apitest')
-rwxr-xr-xtest/apitest5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/apitest b/test/apitest
index 7ce3f098..ccb40bbe 100755
--- a/test/apitest
+++ b/test/apitest
@@ -145,7 +145,8 @@ class Tester:
for path in dev_signals_filter:
self.bus.add_signal_receiver(self.dev_signal_handler,
signal, 'org.bluez.Adapter',
- 'org.bluez', path)
+ 'org.bluez', path,
+ message_keyword='dbus_message')
except dbus.DBusException, e:
print 'Failed to setup signal handler for device path: %s' % e
sys.exit(1)
@@ -414,7 +415,7 @@ class Tester:
self.dbus_dev_sig_setup()
print 'Listening for events...'
- if self.cmd in mgr_cmds:
+ elif self.cmd in mgr_cmds:
try:
self.dbus_mgr_setup()
except dbus.DBusException, e: