commit aaf1d91d516c9a60a68e0620753b9f45aed6da94
parent b0ad6158e18889fb95ce2f8911f6a01fd267d768
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 3 Jan 2024 10:46:38 -0800
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.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git 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')