tests: Fix scan_reqs_with_non_scan_radio_work error reporting
Raise an exception instead of printing out to stdout if scan fails to complete. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
58bd7dc341
commit
0aca60b84c
1 changed files with 1 additions and 1 deletions
|
@ -620,7 +620,7 @@ def test_scan_reqs_with_non_scan_radio_work(dev, apdev):
|
|||
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-SCAN-RESULTS"], timeout=10)
|
||||
if ev is None:
|
||||
print "Scan did not complete"
|
||||
raise Exception("Scan did not complete")
|
||||
ev = dev[0].wait_event(["CTRL-EVENT-SCAN-STARTED"], timeout=0.2)
|
||||
if ev is not None:
|
||||
raise Exception("Unexpected scan started")
|
||||
|
|
Loading…
Reference in a new issue