Skip to contentSkip to conversation

auto-t: add missing ocv option and wait to testChannelSwitch

PATCH Applied James Prestwood 2 participants 2 messages Oct 19, 2021

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH 1/1 auto-t: add missing ocv option and wait to testChannelSwitch

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(+)
autotests/testChannelSwitch/connection_test.py +4 -0
index e5421c69..03d24a77 100644
@@ -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)
autotests/testChannelSwitch/ssidCCMP.conf +1 -0
index 074e8228..438b9955 100644
@@ -5,3 +5,4 @@ ssid=ssidCCMP
 wpa=2
 wpa_pairwise=CCMP
 wpa_passphrase=secret123
+ocv=1
Signature · 1 line
2.31.1
Applied
#1 lore raw

Hi James,

Quoted 5 lines · James Prestwood

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