commit | 38427216238cf26d546ececff3b1ca57a4acb20f | [log] [tgz] |
---|---|---|
author | Calvin Huang <calhuang@google.com> | Tue Sep 10 17:23:02 2019 -0700 |
committer | Calvin Huang <calhuang@google.com> | Tue Sep 10 17:24:44 2019 -0700 |
tree | 968e3798c84470b02aa6b62a4423d72fbd347b2b | |
parent | 52a05e2e386a75572a5514e57a1c33ad889af6c3 [diff] |
Skip documenttest for automotive Sdk_gcar_x86 doesn't have documentUI package, Thus supportsHardware() should return false, then Document related tests in CtsAppSecurityHostTestCases Should be skipped. Bug: 139495480 Test: lunch sdk_gcar_x86-userdebug Test: atest CtsAppSecurityHostTestCases Change-Id: Iac52f47d7d6a8d1bac53fd7b3951a0ce0a9fb732
diff --git a/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java b/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java index afcaae0..6188303 100644 --- a/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java +++ b/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/DocumentsClientTestCase.java
@@ -138,7 +138,8 @@ protected boolean supportedHardware() { final PackageManager pm = getInstrumentation().getContext().getPackageManager(); if (pm.hasSystemFeature("android.hardware.type.television") - || pm.hasSystemFeature("android.hardware.type.watch")) { + || pm.hasSystemFeature("android.hardware.type.watch") + || pm.hasSystemFeature("android.hardware.type.automotive")) { return false; } return true;