mirror of git://git.sysmocom.de/ofono
Add simple test script to cancel USSD transactions
This commit is contained in:
parent
7e01bef1b4
commit
89d77da833
|
@ -336,8 +336,9 @@ test_scripts = test/activate-context \
|
|||
test/test-ss-control-cb \
|
||||
test/test-ss-control-cf \
|
||||
test/test-ss-control-cs \
|
||||
test/test-ussd \
|
||||
test/test-voicecall \
|
||||
test/test-ussd \
|
||||
test/cancel-ussd \
|
||||
test/offline-modem \
|
||||
test/online-modem \
|
||||
test/get-tech-preference \
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
|
||||
bus = dbus.SystemBus()
|
||||
|
||||
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
||||
'org.ofono.Manager')
|
||||
|
||||
properties = manager.GetProperties()
|
||||
|
||||
path = properties["Modems"][0]
|
||||
|
||||
ussd = dbus.Interface(bus.get_object('org.ofono', path),
|
||||
'org.ofono.SupplementaryServices')
|
||||
|
||||
ussd.Cancel()
|
Loading…
Reference in New Issue