Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch
Date: Tue, 19 Oct 2021 12:02:32 -0700	[thread overview]
Message-ID: <20211019190232.560446-1-prestwoj@gmail.com> (raw)

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

This should have been added to the original test
---
 autotests/testChannelSwitch/connection_test.py | 4 ++++
 autotests/testChannelSwitch/ssidCCMP.conf      | 1 +
 2 files changed, 5 insertions(+)

diff --git a/autotests/testChannelSwitch/connection_test.py b/autotests/testChannelSwitch/connection_test.py
index e5421c69..03d24a77 100644
--- a/autotests/testChannelSwitch/connection_test.py
+++ b/autotests/testChannelSwitch/connection_test.py
@@ -39,6 +39,10 @@ class Test(unittest.TestCase):
         testutil.test_ifaces_connected()
 
         hapd.chan_switch(2)
+        # Make sure the SA Query is verified and IWD doesn't disconnect
+        with self.assertRaises(TimeoutError):
+            condition = 'obj.state == DeviceState.disconnected'
+            wd.wait_for_object_condition(device, condition, 4)
 
         condition = 'obj.state == DeviceState.connected'
         wd.wait_for_object_condition(device, condition)
diff --git a/autotests/testChannelSwitch/ssidCCMP.conf b/autotests/testChannelSwitch/ssidCCMP.conf
index 074e8228..438b9955 100644
--- a/autotests/testChannelSwitch/ssidCCMP.conf
+++ b/autotests/testChannelSwitch/ssidCCMP.conf
@@ -5,3 +5,4 @@ ssid=ssidCCMP
 wpa=2
 wpa_pairwise=CCMP
 wpa_passphrase=secret123
+ocv=1
-- 
2.31.1

             reply	other threads:[~2021-10-19 19:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19 19:02 James Prestwood [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-19 19:30 [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch Denis Kenzior

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=20211019190232.560446-1-prestwoj@gmail.com \
    --to=iwd@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox