[PATCH v5 6/8] auto-t: Call default instead of reload in teardown
Alexander Ganslandt <[email protected]> Fri, 28 Nov 2025 12:54:27 +0100
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
This solves an issue where test_ignore_candidate_list_quirk() uses
set_value() to set a vendor element telling the station that the
candidate list should be ignored, and that config was never cleared in
teardown. This resulted in subsequent tests ignoring the candidate list
and doing a normal scan. This caused them to connect to a BSS other than
the one in the candidate list, causing the tests to fail.
When calling default(), it first resets all configs to default, then
calls reload(). So we still get the reload() call as before, with the
added benefit of also clearing the configs. This makes the tests pass.
---
autotests/testAPRoam/bad_neighbor_report_test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autotests/testAPRoam/bad_neighbor_report_test.py b/autotests/testAPRoam/bad_neighbor_report_test.py
index e361d37d..c8e4e45a 100644
--- a/autotests/testAPRoam/bad_neighbor_report_test.py
+++ b/autotests/testAPRoam/bad_neighbor_report_test.py
@@ -136,7 +136,7 @@ class Test(unittest.TestCase):
self.device = None
for hapd in self.bss_hostapd:
- hapd.reload()
+ hapd.default()
@classmethod
def setUpClass(cls):
--
2.39.5