Snap for 10269577 from 049e321a4ec386ebda906de759d56dbdaad6cc89 to udc-release Change-Id: Ia5bac0caf281efde50bbcf0787ad3caf7a9abe82
diff --git a/acts_tests/tests/google/wifi/WifiBridgedApTest.py b/acts_tests/tests/google/wifi/WifiBridgedApTest.py index b00ddae..93ae496 100644 --- a/acts_tests/tests/google/wifi/WifiBridgedApTest.py +++ b/acts_tests/tests/google/wifi/WifiBridgedApTest.py
@@ -78,6 +78,8 @@ def teardown_test(self): super().teardown_test() + # Reset unplugged status + self.dut.adb.shell("cmd battery reset") if self.dut.droid.wifiIsApEnabled(): wutils.stop_wifi_tethering(self.dut) for ad in self.android_devices: @@ -904,6 +906,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -954,6 +958,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1028,6 +1034,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1129,6 +1137,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1173,6 +1183,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1223,6 +1235,8 @@ asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp and verify both 2G,5G instances have been enabled. self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1272,6 +1286,9 @@ self.dut, wutils.WifiEnums.CountryCode.US) asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp with "Extend compatibility set to ON". self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE, @@ -1314,6 +1331,9 @@ self.dut, wutils.WifiEnums.CountryCode.US) asserts.skip_if(not is_supported, "BridgedAp is not supported in {}" .format(wutils.WifiEnums.CountryCode.US)) + + # Simulate the unplugged scenario + self.dut.adb.shell("cmd battery unplug") # Enable BridgedAp with "Extend compatibility set to ON". self.enable_bridged_ap(self.dut, WifiEnums.SoftApSecurityType.WPA3_SAE,