From f746cba504451a6929228307c753a0c94be03c17 Mon Sep 17 00:00:00 2001 From: Bertrand Aygon Date: Wed, 8 Jun 2011 15:56:28 +0200 Subject: [PATCH] test: Add modem argument to cancel-ussd --- test/cancel-ussd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')