All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH v4 08/13] auto-t: do full scan for testSAE
Date: Mon, 28 Mar 2022 10:28:37 -0700	[thread overview]
Message-ID: <20220328172842.1660272-9-prestwoj@gmail.com> (raw)
In-Reply-To: 20220328172842.1660272-1-prestwoj@gmail.com

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

This will ensure the IWD scans until the network is found.
---
 autotests/testSAE/connection_test.py | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/autotests/testSAE/connection_test.py b/autotests/testSAE/connection_test.py
index 75f5c12d..c67f8c83 100644
--- a/autotests/testSAE/connection_test.py
+++ b/autotests/testSAE/connection_test.py
@@ -23,19 +23,7 @@ class Test(unittest.TestCase):
 
         device.disconnect()
 
-        wd.wait_for_object_condition(device, 'not obj.scanning')
-
-        device.debug_scan([2412])
-
-        wd.wait_for_object_condition(device, 'obj.scanning')
-        wd.wait_for_object_condition(device, 'not obj.scanning')
-
-        #
-        # An explicit scan was done prior due to hostapd options changing.
-        # Because of this scan_if_needed is set to False to avoid a redundant
-        # scan
-        #
-        network = device.get_ordered_network('ssidSAE', scan_if_needed=False)
+        network = device.get_ordered_network('ssidSAE', full_scan=True)
 
         self.assertEqual(network.type, NetworkType.psk)
 
-- 
2.34.1

                 reply	other threads:[~2022-03-28 17:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220328172842.1660272-9-prestwoj@gmail.com \
    --to=unknown@example.com \
    /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 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.