summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/cancel-ussd5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cancel-ussd b/test/cancel-ussd
index 73796228..52465919 100755
--- a/test/cancel-ussd
+++ b/test/cancel-ussd
@@ -10,7 +10,10 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
modems = manager.GetModems()
-path, properties = modems[0]
+if (len(sys.argv) == 2):
+ path = sys.argv[1]
+else:
+ path = modems[0][0]
ussd = dbus.Interface(bus.get_object('org.ofono', path),
'org.ofono.SupplementaryServices')