mirror of git://git.sysmocom.de/ofono
test: Add cancel-sms script
This commit is contained in:
parent
4f8d85665d
commit
ee98484193
|
@ -685,6 +685,7 @@ test_scripts = test/backtrace \
|
|||
test/receive-sms \
|
||||
test/remove-contexts \
|
||||
test/send-sms \
|
||||
test/cancel-sms \
|
||||
test/set-mic-volume \
|
||||
test/set-speaker-volume \
|
||||
test/test-stk-menu \
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
|
||||
bus = dbus.SystemBus()
|
||||
|
||||
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||
'org.ofono.Manager')
|
||||
|
||||
path = sys.argv[1]
|
||||
message = dbus.Interface(bus.get_object('org.ofono', path),
|
||||
'org.ofono.Message')
|
||||
|
||||
message.Cancel()
|
Loading…
Reference in New Issue