public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] auto-t: fix two issues with testAPRoam
@ 2026-03-11 17:02 James Prestwood
  2026-03-13 11:04 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2026-03-11 17:02 UTC (permalink / raw)
  To: iwd; +Cc: James Prestwood

One of the tests expects a roam to a certain BSS, but there's an
extra hostapd instance (use by another test) making it random which
BSS IWD roams to. This hostapd instance has been disabled for this
test.

The second issue was waiting for the no-roam-candidates event. The
default wait is 10 seconds, which can sometimes take longer since
IWD will perform a full scan after a roam scan. Increase this timeout
to 20 seconds to guard against that.
---
 autotests/testAPRoam/connection_test.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/autotests/testAPRoam/connection_test.py b/autotests/testAPRoam/connection_test.py
index 1f95fb96..b55b8455 100644
--- a/autotests/testAPRoam/connection_test.py
+++ b/autotests/testAPRoam/connection_test.py
@@ -40,7 +40,7 @@ class Test(unittest.TestCase):
 
             to_bss.wait_for_event('AP-STA-CONNECTED %s' % self.device.address)
         else:
-            self.device.wait_for_event("no-roam-candidates")
+            self.device.wait_for_event("no-roam-candidates", timeout=20)
 
     def test_disassoc_imminent(self):
         self.initial_connection()
@@ -76,6 +76,8 @@ class Test(unittest.TestCase):
             (cls.bss_hostapd[1].bssid, "8f0000005102060603000000"),
         ]
 
+        cls.bss_hostapd[2].disable()
+
     @classmethod
     def tearDownClass(cls):
         IWD.clear_storage()
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] auto-t: fix two issues with testAPRoam
  2026-03-11 17:02 [PATCH] auto-t: fix two issues with testAPRoam James Prestwood
@ 2026-03-13 11:04 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2026-03-13 11:04 UTC (permalink / raw)
  To: James Prestwood; +Cc: iwd

Hi James,

> One of the tests expects a roam to a certain BSS, but there's an
> extra hostapd instance (use by another test) making it random which
> BSS IWD roams to. This hostapd instance has been disabled for this
> test.
> 
> The second issue was waiting for the no-roam-candidates event. The
> default wait is 10 seconds, which can sometimes take longer since
> IWD will perform a full scan after a roam scan. Increase this timeout
> to 20 seconds to guard against that.
> ---
> autotests/testAPRoam/connection_test.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)

patch has been applied.

Regards

Marcel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-13 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 17:02 [PATCH] auto-t: fix two issues with testAPRoam James Prestwood
2026-03-13 11:04 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox