From 4676dd7efd7702c4e536a4547cf50627e2c1bb66 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 14 Sep 2020 14:02:32 -0700 Subject: [PATCH] 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. --- autotests/testFT-PSK-roam/connection_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py index ccbaccb8..6ad7af4e 100644 --- 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()