test: Add modem argument to cancel-ussd

This commit is contained in:
Bertrand Aygon 2011-06-08 15:56:28 +02:00 committed by Denis Kenzior
parent fa88c1a6b0
commit f746cba504
1 changed files with 4 additions and 1 deletions

View File

@ -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')