summaryrefslogtreecommitdiffstats
path: root/test/create-multiparty
diff options
context:
space:
mode:
authorAlfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com>2014-06-10 10:27:16 +0200
committerDenis Kenzior <denkenz@gmail.com>2014-06-10 23:23:51 -0500
commitd9f252fb61f1f84b150a2cd74db4a5052380f867 (patch)
tree34e1890aa56723fb286ec681a5dffea5cf59ca29 /test/create-multiparty
parent815d62888f4e46aa96d416c47a076839dbbc43f5 (diff)
downloadofono-d9f252fb61f1f84b150a2cd74db4a5052380f867.tar.bz2
test: Adapt voice call test scripts to multi-modem
Some tests scripts were not ready to handle situations with more than one modem present. This change fixes the scripts that handle voice calls.
Diffstat (limited to 'test/create-multiparty')
-rwxr-xr-xtest/create-multiparty12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/create-multiparty b/test/create-multiparty
index b6395e8e..1b760109 100755
--- a/test/create-multiparty
+++ b/test/create-multiparty
@@ -8,12 +8,14 @@ bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
-modems = manager.GetModems()
-
-path = modems[0][0]
-
-if (len(sys.argv) == 2):
+if (len(sys.argv) == 1):
+ modems = manager.GetModems()
+ path = modems[0][0]
+elif (len(sys.argv) == 2):
path = sys.argv[1]
+else:
+ print("Usage: %s [modem]" % (sys.argv[0]))
+ sys.exit(1)
manager = dbus.Interface(bus.get_object('org.ofono', path),
'org.ofono.VoiceCallManager')