From d94eb705c725b5e466701e80f69ba3ecbc18f1b5 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 10 Sep 2013 10:53:49 -0500 Subject: [PATCH] test: Add selecting the modem in private-chat --- test/private-chat | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/private-chat b/test/private-chat index e7c8026e..2fe07970 100755 --- a/test/private-chat +++ b/test/private-chat @@ -11,10 +11,16 @@ manager = dbus.Interface(bus.get_object('org.ofono', '/'), modems = manager.GetModems() path = modems[0][0] +if (len(sys.argv) == 3): + path = sys.argv[1] + callid = sys.argv[2] +else: + callid = sys.argv[1] + manager = dbus.Interface(bus.get_object('org.ofono', path), 'org.ofono.VoiceCallManager') -mpty = manager.PrivateChat(sys.argv[1], timeout=100) +mpty = manager.PrivateChat(callid, timeout=100) for path in mpty: print path