commit | d1625679fba0b54b74ac95aa9adf9df60996df76 | [log] [tgz] |
---|---|---|
author | Xinyi Zhou <zxy@google.com> | Tue Dec 12 19:53:40 2023 +0000 |
committer | Xinyi Zhou <zxy@google.com> | Wed Dec 13 05:48:48 2023 +0000 |
tree | 4ecabe45a4860f04360ec46c25ad9a11cece2cbc | |
parent | f83d4df182c853b1718e22ba8ee3b8201f49d8e6 [diff] |
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
diff --git a/nearby/tests/unit/src/com/android/server/nearby/provider/ChreDiscoveryProviderTest.java b/nearby/tests/unit/src/com/android/server/nearby/provider/ChreDiscoveryProviderTest.java index 8ee661f..590a46e 100644 --- a/nearby/tests/unit/src/com/android/server/nearby/provider/ChreDiscoveryProviderTest.java +++ b/nearby/tests/unit/src/com/android/server/nearby/provider/ChreDiscoveryProviderTest.java
@@ -193,6 +193,11 @@ @Test @SdkSuppress(minSdkVersion = 32, codeName = "T") public void testOnNearbyDeviceDiscoveredWithDataElements_TIME() { + // The feature only supports user-debug builds. + if (!Build.isDebuggable()) { + return; + } + // Disables the setting of test app support boolean isSupportedTestApp = getDeviceConfigBoolean( NEARBY_SUPPORT_TEST_APP, false /* defaultValue */);