* [Buildroot] [PATCH] support/testing: TestUsbIp: wait for the keyboard be detected
@ 2026-06-21 16:53 Romain Naour via buildroot
2026-08-02 20:29 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour via buildroot @ 2026-06-21 16:53 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
Running TestUsbIp may fail when checking if two QEMU USB Keyboards are
reported by lsusb. On fast host, the second QEMU USB keyboard may not
aleady detected when lsusb is executed. So wait a bit, to let the new
keyboard be detected.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
support/testing/tests/package/test_usbip.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/support/testing/tests/package/test_usbip.py b/support/testing/tests/package/test_usbip.py
index 2fae8f7f6a..62c7b59814 100644
--- a/support/testing/tests/package/test_usbip.py
+++ b/support/testing/tests/package/test_usbip.py
@@ -1,4 +1,5 @@
import os
+import time
import infra.basetest
@@ -91,6 +92,9 @@ class TestUsbIp(infra.basetest.BRTest):
# keyboard.
self.assertRunOk("usbip attach --remote=127.0.0.1 --busid=1-1")
+ # Wait a bit, to let the new keyboard be detected.
+ time.sleep(1)
+
# We check "lsusb" now sees exactly two QEMU USB Keyboards
# (the original one, and a second one created by usbip).
out, ret = self.emulator.run("lsusb")
--
2.54.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-02 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-21 16:53 [Buildroot] [PATCH] support/testing: TestUsbIp: wait for the keyboard be detected Romain Naour via buildroot
2026-08-02 20:29 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox