summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/activate-context5
-rwxr-xr-xtest/deactivate-context5
2 files changed, 8 insertions, 2 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')
diff --git a/test/deactivate-context b/test/deactivate-context
index 04d4bc81..e3754c2e 100755
--- a/test/deactivate-context
+++ b/test/deactivate-context
@@ -23,7 +23,10 @@ for path, properties in modems:
print "No context available"
sys.exit(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')