commit | 1a3a3706bab7444e1688ebf558cd919f48300200 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Dec 05 09:37:36 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Dec 05 09:37:36 2024 +0000 |
tree | 8b62f25e2018a3080a04f0e3f507bedd67a943d0 | |
parent | 2ec9799db4bc91c9a282aa573e1c237ad58a6926 [diff] | |
parent | bd579b46582db80653ffed92fe980c04e3a06a9b [diff] |
Merge "Reconnect to wifi if supported" into main am: bd579b4658 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3235063 Change-Id: I79e2775a8d750904f14b522fb4ed9ce54a81a865 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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()