From f89a38ac32c18dbdaa2256ab2653eb3b39d51aff Mon Sep 17 00:00:00 2001 From: Nolan Scobie Date: Wed, 9 Nov 2022 15:23:07 -0500 Subject: [PATCH] Change hwui_unit_tests (and benchmarks) to push to non-root writable dir ...and switch to more appropriate "general-tests" suite type. This allows the test suite to be run in certain lab/infra scenarios, like on ABTD. Docs device-tests to general-tests: https://source.android.com/docs/core/tests/development/test-mapping#packaging_build_script_rules Tests Without this change: https://android-build.googleplex.com/builds/abtd/run/L10000000957295240 (tooling fails to push content) With this change: https://android-build.googleplex.com/builds/abtd/run/L52900000957292742 (gets past tooling failure, and fails on an actually failing unit test) Test: compare ABTD runs with and without this CL Bug: 257123741 Change-Id: I33696a0f1c9279622138e4dc4c49d73c99f359eb --- libs/hwui/Android.bp | 2 +- libs/hwui/AndroidTest.xml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index 29f37737d4331..7b7677ff297de 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -636,7 +636,7 @@ cc_library_static { cc_defaults { name: "hwui_test_defaults", defaults: ["hwui_defaults"], - test_suites: ["device-tests"], + test_suites: ["general-tests"], header_libs: ["libandroid_headers_private"], target: { android: { diff --git a/libs/hwui/AndroidTest.xml b/libs/hwui/AndroidTest.xml index 381fb9f6c7bf5..911315f81a8a5 100644 --- a/libs/hwui/AndroidTest.xml +++ b/libs/hwui/AndroidTest.xml @@ -16,22 +16,22 @@