Print RF map for roaming tests and fix sensitivity test cases.
This CL adds a logging line in roaming tests to verify RF connection
maps, i.e., the connections between the access point, DUT, and
attenuator. The CL also fixes a bug in generating sensitivity test cases
that was resulting in only the first channel being tested.
Test: Done
Bug: None
Change-Id: Ib0d42fa9dba8acb207f607ff37d205e2e6a0c5e8
Signed-off-by: Omar El Ayach <oelayach@google.com>
diff --git a/acts/framework/acts/test_utils/wifi/wifi_performance_test_utils.py b/acts/framework/acts/test_utils/wifi/wifi_performance_test_utils.py
index 08c1363..822bf63 100644
--- a/acts/framework/acts/test_utils/wifi/wifi_performance_test_utils.py
+++ b/acts/framework/acts/test_utils/wifi/wifi_performance_test_utils.py
@@ -910,6 +910,9 @@
"network": net_id,
"dut_chain": chain
})
+ logging.debug("RF Map (by Network): {}".format(rf_map_by_network))
+ logging.debug("RF Map (by Atten): {}".format(rf_map_by_atten))
+
return rf_map_by_network, rf_map_by_atten
diff --git a/acts/tests/google/wifi/WifiRoamingPerformanceTest.py b/acts/tests/google/wifi/WifiRoamingPerformanceTest.py
index e8178ff..78adb52 100644
--- a/acts/tests/google/wifi/WifiRoamingPerformanceTest.py
+++ b/acts/tests/google/wifi/WifiRoamingPerformanceTest.py
@@ -73,6 +73,8 @@
wputils.get_full_rf_connection_map(self.attenuators, self.dut,
self.remote_server,
self.main_network))
+ self.log.info("RF Map (by Network): {}".format(self.rf_map_by_network))
+ self.log.info("RF Map (by Atten): {}".format(self.rf_map_by_atten))
#Turn WiFi ON
for dev in self.android_devices:
diff --git a/acts/tests/google/wifi/WifiSensitivityTest.py b/acts/tests/google/wifi/WifiSensitivityTest.py
index 8f41fe5..00935a8 100644
--- a/acts/tests/google/wifi/WifiSensitivityTest.py
+++ b/acts/tests/google/wifi/WifiSensitivityTest.py
@@ -535,7 +535,7 @@
setattr(self, testcase_name,
partial(self._test_sensitivity, testcase_params))
test_cases.append(testcase_name)
- return test_cases
+ return test_cases
class WifiSensitivity_AllChannels_Test(WifiSensitivityTest):