From e0ba4aaf1c49dbeb4251901df74a76bd629d5266 Mon Sep 17 00:00:00 2001 From: Pavel Grafov Date: Thu, 12 Dec 2019 16:25:28 +0000 Subject: [PATCH] Make sure test APK is build when test is run via test mapping Currently the test runs fine with atest locally, but fails in CI with "TargetSetupError: DummyDPC.apk not found". With test_suites it will be packaged and should be available in CI as well. Bug: 141115315 Test: atest -c ManagedProfileLifecycleStressTest Change-Id: I5e7138a6e1642cca1627060d76dd0c078c4f96f6 --- tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp b/tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp index d95af340337ef..1f47b03d00740 100644 --- a/tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp +++ b/tests/ManagedProfileLifecycleStressTest/app/DummyDPC/Android.bp @@ -17,4 +17,5 @@ android_test { defaults: ["cts_defaults"], srcs: ["src/**/*.java"], sdk_version: "current", + test_suites: ["device-tests"], }