From: Jouni Malinen Date: Tue, 13 Dec 2016 14:48:53 +0000 (+0200) Subject: tests: Fix scan_reqs_with_non_scan_radio_work error reporting X-Git-Tag: hostap_2_7~2016 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0aca60b84c95fc2287f7fef6e59bb2654acd2429;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index 9d2e59877..bf4384626 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -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")