]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Clear scan results at the end of scan-ssid-list tests
authorJouni Malinen <j@w1.fi>
Sat, 20 Feb 2021 14:01:32 +0000 (16:01 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Feb 2021 14:01:32 +0000 (16:01 +0200)
commit6ef749ce15654416e9b0e81e51bc5a8bd5b4db8f
treefbcf9df8bc7887a3c7561da696fa333a432ddd1f
parent751ce086aa059a41908594335e7aae1b43e8fb63
tests: Clear scan results at the end of scan-ssid-list tests

These test cases use hidden SSIDs and left behind a BSS entry with no
SSID. That can cause issues for consecutive test cases where the BSSID
can be used as the key for finding a BSS entry. That could end up
picking the old hidden SSID BSS instead of the one that was meant to be
used in the test case.

Flush the scan cache at the end of the scan-ssid-list test cases to
reduce invalid test failures for the consecutive test cases.

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