diff options
author | James Prestwood <prestwoj@gmail.com> | 2024-01-03 10:46:38 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2024-01-04 11:59:41 -0600 |
commit | aaf1d91d516c9a60a68e0620753b9f45aed6da94 (patch) | |
tree | 9a454619bfbbcad7abf25257d76bcee7300d0f64 | |
parent | b0ad6158e18889fb95ce2f8911f6a01fd267d768 (diff) |
auto-t: fix random testPSK-roam failure
This was caused by the unused hostapd instance running after being
re-enabled by mistake. This cause an additional scan result with the
same rank to be seen which would then be connected to by luck of the
draw.
-rw-r--r-- | autotests/testPSK-roam/connection_test.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/autotests/testPSK-roam/connection_test.py b/autotests/testPSK-roam/connection_test.py index 2dbf1473c..8d1658a8d 100644 --- a/autotests/testPSK-roam/connection_test.py +++ b/autotests/testPSK-roam/connection_test.py @@ -144,9 +144,10 @@ class Test(unittest.TestCase): IWD.copy_to_storage('TestFT.psk') cls.bss_hostapd = [ HostapdCLI(config='ft-psk-ccmp-1.conf'), - HostapdCLI(config='ft-psk-ccmp-2.conf'), - HostapdCLI(config='ft-psk-ccmp-3.conf') ] - cls.bss_hostapd[2].disable() + HostapdCLI(config='ft-psk-ccmp-2.conf') ] + + unused = HostapdCLI(config='ft-psk-ccmp-3.conf') + unused.disable() rad0 = hwsim.get_radio('rad0') rad3 = hwsim.get_radio('rad3') |