tests: Avoid race condition in owe_transition_mode_ifname_acs
AP1 might take longer time than AP2, so add some more wait here. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
ee5ababa1d
commit
808eea4856
1 changed files with 6 additions and 0 deletions
|
@ -311,9 +311,15 @@ def run_owe_transition_mode_ifname_acs(dev, apdev, wait_first):
|
|||
wait_acs(hapd2)
|
||||
if not wait_first:
|
||||
state = hapd.get_status_field("state")
|
||||
logger.info("AP1 state: " + state)
|
||||
if state == "ACS-STARTED":
|
||||
time.sleep(5)
|
||||
state = hapd.get_status_field("state")
|
||||
logger.info("AP1 state after 5 sec: " + state)
|
||||
if state != "ENABLED":
|
||||
time.sleep(1)
|
||||
state = hapd.get_status_field("state")
|
||||
logger.info("AP1 state after 1 sec: " + state)
|
||||
if state != "ENABLED":
|
||||
raise Exception("AP1 startup did not succeed")
|
||||
|
||||
|
|
Loading…
Reference in a new issue