Exclude user build devices for the test

Fix: 313884732
Ignore-AOSP-First: nearby_not_in_aosp_yet
Test: -m
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:523eeb3c87bd8f6d353d439120545566f94aaf4c)
Merged-In: Iaaca422cb105c00ded1d84b40afd745abcd651b7
Change-Id: Iaaca422cb105c00ded1d84b40afd745abcd651b7
This commit is contained in:
Xinyi Zhou
2023-12-12 19:53:40 +00:00
parent f83d4df182
commit d1625679fb

View File

@@ -193,6 +193,11 @@ public class ChreDiscoveryProviderTest {
@Test @Test
@SdkSuppress(minSdkVersion = 32, codeName = "T") @SdkSuppress(minSdkVersion = 32, codeName = "T")
public void testOnNearbyDeviceDiscoveredWithDataElements_TIME() { public void testOnNearbyDeviceDiscoveredWithDataElements_TIME() {
// The feature only supports user-debug builds.
if (!Build.isDebuggable()) {
return;
}
// Disables the setting of test app support // Disables the setting of test app support
boolean isSupportedTestApp = getDeviceConfigBoolean( boolean isSupportedTestApp = getDeviceConfigBoolean(
NEARBY_SUPPORT_TEST_APP, false /* defaultValue */); NEARBY_SUPPORT_TEST_APP, false /* defaultValue */);