summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2012-08-06 17:42:36 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-08-06 08:52:23 -0700
commit873df548f605d76251421d5053c3bee0dc2e3b85 (patch)
tree8d949894cb1b64456318ce00cef6cfdd50f2bb0d /test
parente4b284860e62f66ac54b32b752d3b40f7b05818f (diff)
downloadofono-873df548f605d76251421d5053c3bee0dc2e3b85.tar.bz2
test: Add hangup-call script for GCF testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/hangup-call14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/hangup-call b/test/hangup-call
new file mode 100755
index 00000000..4c46ec04
--- /dev/null
+++ b/test/hangup-call
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+bus = dbus.SystemBus()
+
+if (len(sys.argv) < 2):
+ print "Usage: %s [ Call Path ]" % (sys.argv[0])
+ sys.exit(1)
+
+call = dbus.Interface(bus.get_object('org.ofono', sys.argv[1]),
+ 'org.ofono.VoiceCall')
+call.Hangup()