summaryrefslogtreecommitdiffstats
path: root/test/activate-context
diff options
context:
space:
mode:
Diffstat (limited to 'test/activate-context')
-rwxr-xr-xtest/activate-context5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/activate-context b/test/activate-context
index 0b19b8cb..2e64db54 100755
--- a/test/activate-context
+++ b/test/activate-context
@@ -25,7 +25,10 @@ for path, properties in modems:
connman.SetProperty("Powered", dbus.Boolean(1))
- path = contexts[0][0]
+ if len(sys.argv) > 1:
+ path = contexts[int(sys.argv[1])][0]
+ else:
+ path = contexts[0][0]
context = dbus.Interface(bus.get_object('org.ofono', path),
'org.ofono.ConnectionContext')