summaryrefslogtreecommitdiffstats
path: root/test/activate-context
diff options
context:
space:
mode:
authorAki Niemi <aki.niemi@nokia.com>2010-04-16 22:42:27 +0300
committerAki Niemi <aki.niemi@nokia.com>2010-04-20 14:16:33 +0300
commit1e75518c30861a39be8f47295f413590583ff3f3 (patch)
tree0a9f7b1ccc42b7678d4f79a6aba07d0b3406d355 /test/activate-context
parent144b30ac6d0f2267d0ddc7fea49a72f0d7b107a2 (diff)
downloadofono-1e75518c30861a39be8f47295f413590583ff3f3.tar.bz2
Improve GPRS test scripts
Catch some errors and add a script for removing contexts.
Diffstat (limited to 'test/activate-context')
-rwxr-xr-xtest/activate-context6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/activate-context b/test/activate-context
index 7ee60e54..98c177a6 100755
--- a/test/activate-context
+++ b/test/activate-context
@@ -35,4 +35,8 @@ for path in properties["Modems"]:
context = dbus.Interface(bus.get_object('org.ofono', path),
'org.ofono.PrimaryDataContext')
- context.SetProperty("Active", dbus.Boolean(1))
+ try:
+ context.SetProperty("Active", dbus.Boolean(1))
+ except dbus.DBusException, e:
+ print "Error activating %s: %s" % (path, str(e))
+ exit(2)