commit 4676dd7efd7702c4e536a4547cf50627e2c1bb66
parent 1b036750023c69dedfcefb80e52173c8e6ba4a20
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 14 Sep 2020 14:02:32 -0700
auto-t: fix testFT-PSK-roam
Some cleanup code got removed by mistake which cleared out any
hwsim rules before the next subtest. Without this the second test
would end up getting erroneous signal strength numbers in the scan
results causing a failure.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py
@@ -187,6 +187,11 @@ class Test(unittest.TestCase):
os.system('ifconfig "' + self.bss_hostapd[0].ifname + '" up')
os.system('ifconfig "' + self.bss_hostapd[1].ifname + '" up')
+ hwsim = Hwsim()
+
+ for rule in list(hwsim.rules.keys()):
+ del hwsim.rules[rule]
+
@classmethod
def setUpClass(cls):
hwsim = Hwsim()