Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch
@ 2021-10-19 19:02 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2021-10-19 19:02 UTC (permalink / raw)
  To: iwd 

[-- 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch
@ 2021-10-19 19:30 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-10-19 19:30 UTC (permalink / raw)
  To: iwd 

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

Hi James,

On 10/19/21 2:02 PM, James Prestwood wrote:
> 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(+)

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-19 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 19:02 [PATCH] auto-t: add missing ocv option and wait to testChannelSwitch James Prestwood
  -- strict thread matches above, loose matches on Subject: below --
2021-10-19 19:30 Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox