diff options
author | Sainath Varanasi <varanasisai@google.com> | 2023-03-30 17:53:55 +0000 |
---|---|---|
committer | Sainath Varanasi <varanasisai@google.com> | 2023-03-30 18:43:50 +0000 |
commit | a27db2ad9f361e29d66cf0d2b6af2da57344aaf8 (patch) | |
tree | e399425a55b5981a95ccc607fc07261aea0bedc5 | |
parent | 9b64856d704a05dc2b72f4898b96de5dbefc8793 (diff) | |
download | cts-a27db2ad9f361e29d66cf0d2b6af2da57344aaf8.tar.gz |
Skip the CtsSharesheetDeviceTest#bulkTest1 and #bulkTest2 as this is not applicable for automotive platforms
Bug: 271898087
Change-Id: Ia14aec4976bcce0d25e80809372f9f7e6dad8217
-rw-r--r-- | tests/tests/sharesheet/src/android/sharesheet/cts/CtsSharesheetDeviceTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tests/sharesheet/src/android/sharesheet/cts/CtsSharesheetDeviceTest.java b/tests/tests/sharesheet/src/android/sharesheet/cts/CtsSharesheetDeviceTest.java index c2af67a60d8..84a3f84c739 100644 --- a/tests/tests/sharesheet/src/android/sharesheet/cts/CtsSharesheetDeviceTest.java +++ b/tests/tests/sharesheet/src/android/sharesheet/cts/CtsSharesheetDeviceTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; +import static org.junit.Assume.assumeFalse; import android.app.ActivityManager; import android.app.Instrumentation; @@ -207,6 +208,10 @@ public class CtsSharesheetDeviceTest { */ @Test public void bulkTest1() { + // Skip the test for automotive platform + assumeFalse("Skip test: does not apply to automotive", + mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); + if (!mMeetsResolutionRequirements) return; // Skip test if resolution is too low try { launchSharesheet(createShareIntent(false /* do not test preview */, @@ -232,6 +237,9 @@ public class CtsSharesheetDeviceTest { @Test public void bulkTest2() { + // Skip the test for automotive platform + assumeFalse("Skip test: does not apply to automotive", + mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); if (!mMeetsResolutionRequirements) return; // Skip test if resolution is too low try { addShortcuts(1); |