commit | bd579b46582db80653ffed92fe980c04e3a06a9b | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Dec 05 09:30:12 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Dec 05 09:30:12 2024 +0000 |
tree | 6b18d33ddbb352f3e9d03f4fe42ab01086c72d6a | |
parent | 7d578f2fae69d719438c154713e3338e5efc7459 [diff] | |
parent | ad713e007a4992ff70696d6b920b88a4f43d0244 [diff] |
Merge "Reconnect to wifi if supported" into main
diff --git a/staticlibs/testutils/host/python/tether_utils.py b/staticlibs/testutils/host/python/tether_utils.py index 702b596..c63de1f 100644 --- a/staticlibs/testutils/host/python/tether_utils.py +++ b/staticlibs/testutils/host/python/tether_utils.py
@@ -108,3 +108,6 @@ server.unregisterAll() # Teardown the hotspot. server.stopAllTethering() + # Some test cases would disable wifi, e.g. cellular upstream tests. + # Reconnect to it if feasible. + server.reconnectWifiIfSupported()
diff --git a/tests/cts/multidevices/snippet/ConnectivityMultiDevicesSnippet.kt b/tests/cts/multidevices/snippet/ConnectivityMultiDevicesSnippet.kt index 49688cc..6da7e9a 100644 --- a/tests/cts/multidevices/snippet/ConnectivityMultiDevicesSnippet.kt +++ b/tests/cts/multidevices/snippet/ConnectivityMultiDevicesSnippet.kt
@@ -89,6 +89,11 @@ ctsNetUtils.expectNetworkIsSystemDefault(network) } + @Rpc(description = "Reconnect to wifi if supported.") + fun reconnectWifiIfSupported() { + ctsNetUtils.reconnectWifiIfSupported() + } + @Rpc(description = "Unregister all connections.") fun unregisterAll() { cbHelper.unregisterAll()