From: Denis Kenzior Date: Tue, 10 Sep 2013 15:53:49 +0000 (-0500) Subject: test: Add selecting the modem in private-chat X-Git-Tag: 1.13~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d94eb705c725b5e466701e80f69ba3ecbc18f1b5;p=platform%2Fupstream%2Fofono.git test: Add selecting the modem in private-chat --- 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