summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-10-19 12:48:59 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-10-19 12:48:59 +0000
commit8f0584a2042946f1bbe41b48a57c3a824ffd443b (patch)
tree337172db81208d7839458d2224f7dbf4abea2d96 /test
parente14317ed02d0c233407729fae2089686e556a9f1 (diff)
Allow listening for events even when a command is sent
Diffstat (limited to 'test')
-rwxr-xr-xtest/apitest5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/apitest b/test/apitest
index 83988896..6d16e7ac 100755
--- a/test/apitest
+++ b/test/apitest
@@ -399,7 +399,8 @@ class Tester:
self.dbus_mgr_sig_setup()
self.dbus_dev_sig_setup()
print 'Listening for events...'
- elif self.cmd in mgr_cmds:
+
+ if self.cmd in mgr_cmds:
try:
self.dbus_mgr_setup()
except dbus.DBusException, e:
@@ -413,7 +414,7 @@ class Tester:
print 'Failed to setup device interface: %s' % e
sys.exit(1)
self.call_dev_dbus_func()
- else:
+ elif not self.listen:
print 'Unknown command: %s' % self.cmd
self.usage()
sys.exit(1)