mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
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.
This commit is contained in:
parent
1b03675002
commit
4676dd7efd
@ -187,6 +187,11 @@ class Test(unittest.TestCase):
|
|||||||
os.system('ifconfig "' + self.bss_hostapd[0].ifname + '" up')
|
os.system('ifconfig "' + self.bss_hostapd[0].ifname + '" up')
|
||||||
os.system('ifconfig "' + self.bss_hostapd[1].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
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
hwsim = Hwsim()
|
hwsim = Hwsim()
|
||||||
|
Loading…
Reference in New Issue
Block a user