From 3392a90decce3ea5567c7d5104478669cffaaa6c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 31 Oct 2015 19:45:59 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_wpas_ctrl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 8a91fdefb..1c8b44562 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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",