diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-08-16 19:09:30 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-08-16 19:09:30 +0200 |
commit | 0e4aaf004258188561cf58737e772deb4b2e4216 (patch) | |
tree | 998cc9a8974375723844c2dc2041a2069dc0fa48 /test/cancel-ussd | |
parent | 0b2beb0068b7d074b0160f3da9b7de91af69e241 (diff) | |
download | ofono-0e4aaf004258188561cf58737e772deb4b2e4216.tar.bz2 |
Add another test script for USSD transactions
Diffstat (limited to 'test/cancel-ussd')
-rwxr-xr-x | test/cancel-ussd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/cancel-ussd b/test/cancel-ussd index 3bccb981..65b0f556 100755 --- a/test/cancel-ussd +++ b/test/cancel-ussd @@ -9,10 +9,15 @@ 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() +properties = ussd.GetProperties() +state = properties["State"] + +print "State: %s" % (state) + +if state != "idle": + ussd.Cancel() |