diff options
author | Bertrand Aygon <bertrand.aygon@intel.com> | 2011-06-08 15:56:28 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-06-06 15:09:08 -0500 |
commit | f746cba504451a6929228307c753a0c94be03c17 (patch) | |
tree | 53a8c5f4a1b1964ad53abe63ee0e5df65328fc1b /test/cancel-ussd | |
parent | fa88c1a6b0aa223b0f6b8b8ffb30ea76089ffe15 (diff) | |
download | ofono-f746cba504451a6929228307c753a0c94be03c17.tar.bz2 |
test: Add modem argument to cancel-ussd
Diffstat (limited to 'test/cancel-ussd')
-rwxr-xr-x | test/cancel-ussd | 5 |
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') |