mirror of git://git.sysmocom.de/ofono
Add support for multiple response USSD transactions in test script
This commit is contained in:
parent
ce46fd322c
commit
fda71cefba
|
@ -38,22 +38,15 @@ if state == "idle":
|
||||||
|
|
||||||
print "State: %s" % (state)
|
print "State: %s" % (state)
|
||||||
|
|
||||||
if state != "user-response":
|
while state == "user-response":
|
||||||
ussd.Cancel()
|
response = raw_input("Enter response: ")
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
response = raw_input("Enter response: ")
|
result = ussd.Respond(response, timeout=100)
|
||||||
|
|
||||||
result = ussd.Respond(response)
|
properties = ussd.GetProperties()
|
||||||
|
state = properties["State"]
|
||||||
|
|
||||||
properties = ussd.GetProperties()
|
print result
|
||||||
state = properties["State"]
|
|
||||||
|
|
||||||
print result
|
if state != "idle":
|
||||||
|
print "State: %s" % (state)
|
||||||
if state == "idle":
|
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
print "State: %s" % (state)
|
|
||||||
|
|
||||||
ussd.Cancel()
|
|
||||||
|
|
Loading…
Reference in New Issue