tests: Fix autogo_bridge to clear autoscan setting
Previously, periodic autoscan could have been left running and that could result in the following test cases failing in some cases. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
852cb016d2
commit
377babb205
1 changed files with 1 additions and 0 deletions
|
@ -414,6 +414,7 @@ def test_autogo_bridge(dev):
|
||||||
raise Exception("Unexpected wpa_state")
|
raise Exception("Unexpected wpa_state")
|
||||||
dev[0].remove_group()
|
dev[0].remove_group()
|
||||||
finally:
|
finally:
|
||||||
|
dev[0].request("AUTOSCAN ")
|
||||||
subprocess.Popen(['sudo', 'brctl', 'delif', 'p2p-br0', dev[0].ifname],
|
subprocess.Popen(['sudo', 'brctl', 'delif', 'p2p-br0', dev[0].ifname],
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'))
|
||||||
subprocess.Popen(['sudo', 'ip', 'link', 'set', 'dev', 'p2p-br0', 'down'],
|
subprocess.Popen(['sudo', 'ip', 'link', 'set', 'dev', 'p2p-br0', 'down'],
|
||||||
|
|
Loading…
Reference in a new issue