]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix scan_reqs_with_non_scan_radio_work error reporting
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 13 Dec 2016 14:48:53 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Dec 2016 18:07:52 +0000 (20:07 +0200)
Raise an exception instead of printing out to stdout if scan fails to
complete.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_scan.py

index 9d2e59877de47a029d7780bc582ffe72a20ab0d4..bf4384626479c5c726338e19ccfebddfd2636d47 100644 (file)
@@ -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")