]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Flush scan results before checking alloc failure
authorThomas Pedersen <thomas@adapt-ip.com>
Fri, 1 May 2020 21:02:11 +0000 (14:02 -0700)
committerJouni Malinen <j@w1.fi>
Sat, 16 May 2020 14:32:01 +0000 (17:32 +0300)
commit692bbd25b4ea66a7fa994a599e5b425c900ade7c
tree67bcd7b1d4ada699e79228e8828fd2ae6e51fada
parent0218bf05d6d281be6a686be27075882dcb67eb09
tests: Flush scan results before checking alloc failure

When run after other tests, It was likely that the target
bss was already present in scan_fail, so the
scan_for_bss() wouldn't trip the allocation failure in
wpa_bss_add(). Flush the scan results before the scan to
ensure wpa_bss_add() is called and consistently pass
scan_fail.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
tests/hwsim/test_scan.py