]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Make scan_trigger_failure more informative
authorJouni Malinen <j@w1.fi>
Sun, 11 Dec 2016 16:41:04 +0000 (18:41 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 11 Dec 2016 16:41:04 +0000 (18:41 +0200)
commit15aa804285df8c42fcf5361db8da6e7e4b153996
tree9b44e9162e913643a0489c7afb834c78a372aa6e
parenta5c723adcf48e8f4cd74f1162a8f2602f3f54040
tests: Make scan_trigger_failure more informative

If wpa_state is left to SCANNING by a previously executed test case,
scan_trigger_failure will fail. Instead of waiting for that failure,
check for wpa_state at the beginning of the test case and report a more
helpful error message if the test case would fail due to a previously
executed test case.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_scan.py