All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] auto-t: fix failing adhoc test
@ 2020-05-05 17:31 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2020-05-05 17:31 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

There appears to be a race condition in the kernel where if two stations
(using the same kernel) do a join IBSS at the same time the New Station
event never comes in (as if no other station has joined the IBSS).

Until this is sorted out, a sleep between starting the IBSS fixes the
issue for the test.
---
 autotests/testAdHoc/adhoc_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/autotests/testAdHoc/adhoc_test.py b/autotests/testAdHoc/adhoc_test.py
index 119c6c7e..27c87a82 100644
--- a/autotests/testAdHoc/adhoc_test.py
+++ b/autotests/testAdHoc/adhoc_test.py
@@ -8,6 +8,7 @@ sys.path.append('../util')
 import iwd
 from iwd import IWD
 import testutil
+from time import sleep
 
 class Test(unittest.TestCase):
 
@@ -18,6 +19,7 @@ class Test(unittest.TestCase):
         self.assertIsNotNone(dev2)
 
         dev1.start_adhoc("AdHocNetwork", "secret123")
+        sleep(1)
         dev2.start_adhoc("AdHocNetwork", "secret123")
 
         dev1.adhoc_wait_for_connected(dev2.address)
-- 
2.21.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-05 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 17:31 [PATCH] auto-t: fix failing adhoc test James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.