test: Add modem argument to hangup-all

Add the possibility to specify the modem to hangup on
This commit is contained in:
Bertrand Aygon 2011-03-14 14:07:32 +01:00 committed by Denis Kenzior
parent d77f600008
commit 6aa713f549
1 changed files with 5 additions and 2 deletions

View File

@ -9,9 +9,12 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
modems = manager.GetModems()
path = modems[0][0]
modem = modems[0][0]
manager = dbus.Interface(bus.get_object('org.ofono', path),
if (len(sys.argv) == 2):
modem = sys.argv[1]
manager = dbus.Interface(bus.get_object('org.ofono', modem),
'org.ofono.VoiceCallManager')
manager.HangupAll()