From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH] auto-t: fix two issues with testAPRoam
Date: Wed, 11 Mar 2026 10:02:10 -0700 [thread overview]
Message-ID: <20260311170210.126610-1-prestwoj@gmail.com> (raw)
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
next reply other threads:[~2026-03-11 17:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 17:02 James Prestwood [this message]
2026-03-13 11:04 ` [PATCH] auto-t: fix two issues with testAPRoam Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260311170210.126610-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox