commit 2cb3b7cf2ef6ec2c3ab7ec10eedcc1f438949f74
parent 0682ddad375d69f7d3b4e7fd06b9ad89b050a329
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Tue, 2 Oct 2018 12:02:17 -0700
auto-t: add explicit scan and completion check
The occasional race conditions used to cause the test to fail
due to the empty list of ordered networks
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/autotests/testKnownNetworks/known_network_test.py b/autotests/testKnownNetworks/known_network_test.py
@@ -14,6 +14,11 @@ class Test(unittest.TestCase):
self.assertIsNotNone(devices)
device = devices[0]
+ device.scan()
+
+ condition = 'obj.scanning'
+ wd.wait_for_object_condition(device, condition)
+
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)