From 1e75518c30861a39be8f47295f413590583ff3f3 Mon Sep 17 00:00:00 2001 From: Aki Niemi Date: Fri, 16 Apr 2010 22:42:27 +0300 Subject: Improve GPRS test scripts Catch some errors and add a script for removing contexts. --- test/activate-context | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/activate-context') 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) -- cgit v1.2.3