WifiStaApConcurrencyTest: Fix a bug in setup
Need to move the supported models check after unpacking of user params.
These changes were present locally, but missed in the previous commit.
Bug: 72639832
Test: `act.py -c softap_cross_onhub.config -tb dut-name -tc
WifiStaApConcurrencyTest:test_wifi_connection_5G_DFS_softap_5G`
Change-Id: I31b82622600b19155f4d625dbf19cb69f433909b
Merged-In: I31b82622600b19155f4d625dbf19cb69f433909b
diff --git a/acts/tests/google/wifi/WifiStaApConcurrencyTest.py b/acts/tests/google/wifi/WifiStaApConcurrencyTest.py
index ff55819..6f0beba 100755
--- a/acts/tests/google/wifi/WifiStaApConcurrencyTest.py
+++ b/acts/tests/google/wifi/WifiStaApConcurrencyTest.py
@@ -53,10 +53,6 @@
self.dut_client = self.android_devices[1]
wutils.wifi_test_device_init(self.dut)
wutils.wifi_test_device_init(self.dut_client)
- if self.dut.model not in self.dbs_supported_models:
- asserts.skip(
- ("Device %s does not support dual interfaces.")
- % self.dut.model)
# Do a simple version of init - mainly just sync the time and enable
# verbose logging. This test will fail if the DUT has a sim and cell
# data is disabled. We would also like to test with phones in less
@@ -76,11 +72,16 @@
asserts.assert_equal(self.dut_client.droid.wifiGetVerboseLoggingLevel(), 1,
"Failed to enable WiFi verbose logging on the client dut.")
- req_params = ["AccessPoint"]
+ req_params = ["AccessPoint", "dbs_supported_models"]
opt_param = ["iperf_server_address"]
self.unpack_userparams(
req_param_names=req_params, opt_param_names=opt_param)
+ if self.dut.model not in self.dbs_supported_models:
+ asserts.skip(
+ ("Device %s does not support dual interfaces.")
+ % self.dut.model)
+
if "iperf_server_address" in self.user_params:
self.iperf_server = self.iperf_servers[0]
if hasattr(self, 'iperf_server'):