diff options
Diffstat (limited to 'test/activate-context')
-rwxr-xr-x | test/activate-context | 5 |
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') |