tests: Clear ignore_old_scan_res after sigma_dut test cases

sigma_dut can end up setting ignore_old_scan_res=1 and that can result
in some of the consecutive test cases failing. Fix this by explicitly
clearing ignore_old_scan_res after sigma_dut cases that may have ended
up setting the parameter.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-07-03 15:58:58 +03:00 committed by Jouni Malinen
parent 0f842044ee
commit 65fa9d96ae

View file

@ -114,6 +114,12 @@ def test_sigma_dut_basic(dev, apdev):
def test_sigma_dut_open(dev, apdev): def test_sigma_dut_open(dev, apdev):
"""sigma_dut controlled open network association""" """sigma_dut controlled open network association"""
try:
run_sigma_dut_open(dev, apdev)
finally:
dev[0].set("ignore_old_scan_res", "0")
def run_sigma_dut_open(dev, apdev):
ifname = dev[0].ifname ifname = dev[0].ifname
sigma = start_sigma_dut(ifname) sigma = start_sigma_dut(ifname)
@ -131,6 +137,12 @@ def test_sigma_dut_open(dev, apdev):
def test_sigma_dut_psk_pmf(dev, apdev): def test_sigma_dut_psk_pmf(dev, apdev):
"""sigma_dut controlled PSK+PMF association""" """sigma_dut controlled PSK+PMF association"""
try:
run_sigma_dut_psk_pmf(dev, apdev)
finally:
dev[0].set("ignore_old_scan_res", "0")
def run_sigma_dut_psk_pmf(dev, apdev):
ifname = dev[0].ifname ifname = dev[0].ifname
sigma = start_sigma_dut(ifname) sigma = start_sigma_dut(ifname)
@ -153,6 +165,12 @@ def test_sigma_dut_psk_pmf(dev, apdev):
def test_sigma_dut_sta_override_rsne(dev, apdev): def test_sigma_dut_sta_override_rsne(dev, apdev):
"""sigma_dut and RSNE override on STA""" """sigma_dut and RSNE override on STA"""
try:
run_sigma_dut_sta_override_rsne(dev, apdev)
finally:
dev[0].set("ignore_old_scan_res", "0")
def run_sigma_dut_sta_override_rsne(dev, apdev):
ifname = dev[0].ifname ifname = dev[0].ifname
sigma = start_sigma_dut(ifname) sigma = start_sigma_dut(ifname)