test: Add cancel-sms script

This commit is contained in:
Denis Kenzior 2016-06-06 11:03:01 -05:00
parent 4f8d85665d
commit ee98484193
2 changed files with 16 additions and 0 deletions

View File

@ -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 \

15
test/cancel-sms Executable file
View File

@ -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()