From ec4cb6beeb14af56c323f1bc0bc191af902a324b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 26 Oct 2018 09:45:01 -0700 Subject: [PATCH] auto-t: test connectivity in testWPA testWPA was not verifying connectivity between the two interfaces. Funny enough, doing this resulted in the same problems that adhoc had where we were setting the connection as complete before the gtk/igtk were set. This is fixed now so we can now use testutil in this test. --- autotests/testWPA/connection_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotests/testWPA/connection_test.py b/autotests/testWPA/connection_test.py index 95532550..ba3fa96f 100644 --- a/autotests/testWPA/connection_test.py +++ b/autotests/testWPA/connection_test.py @@ -8,6 +8,7 @@ import iwd from iwd import IWD from iwd import PSKAgent from iwd import NetworkType +import testutil class Test(unittest.TestCase): @@ -42,6 +43,9 @@ class Test(unittest.TestCase): condition = 'obj.connected' wd.wait_for_object_condition(ordered_network.network_object, condition) + testutil.test_iface_operstate() + testutil.test_ifaces_connected() + device.disconnect() condition = 'not obj.connected'