mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Clear config_methods at the end of wpas_ctrl_set_wps_params
It was possible for dev[2] to be left with non-default config_methods parameter at the end of the test case and that could result issues in following test cases. This hit a failure in the following sequence: wpas_ctrl_set_wps_params p2ps_channel_active_go_and_station_same Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
17b7032891
commit
3392a90dec
@ -678,6 +678,12 @@ def test_wpas_ctrl_mib(dev):
|
||||
|
||||
def test_wpas_ctrl_set_wps_params(dev):
|
||||
"""wpa_supplicant ctrl_iface SET config_methods"""
|
||||
try:
|
||||
_test_wpas_ctrl_set_wps_params(dev)
|
||||
finally:
|
||||
dev[2].request("SET config_methods ")
|
||||
|
||||
def _test_wpas_ctrl_set_wps_params(dev):
|
||||
ts = [ "config_methods label virtual_display virtual_push_button keypad",
|
||||
"device_type 1-0050F204-1",
|
||||
"os_version 01020300",
|
||||
|
Loading…
Reference in New Issue
Block a user