From d887ed3f953a7fcfda3fd0ccbbce1b6a28e899dc Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 2 Dec 2015 18:19:39 +0200 Subject: [PATCH] tests: Fix ap_wps_er_multi_add_enrollee cleanup steps Only one of the ERs was stopped at the end of the test case and this could result in the following test case failing, e.g., when executing this test case sequence: ap_wps_er_multi_add_enrollee ap_wps_upnp. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_wps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index ef687d6aa..455a2f29c 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -1195,7 +1195,8 @@ def test_ap_wps_er_multi_add_enrollee(dev, apdev): try: _test_ap_wps_er_multi_add_enrollee(dev, apdev) finally: - dev[0].request("WPS_ER_STOP") + for i in range(2): + dev[i].request("WPS_ER_STOP") def _test_ap_wps_er_multi_add_enrollee(dev, apdev): ssid = "wps-er-add-enrollee" -- 2.47.2