summaryrefslogtreecommitdiff
path: root/ci_tests
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2025-02-20 17:18:17 -0800
committer mrziwang <mrziwang@google.com> 2025-02-20 17:18:17 -0800
commit4d3ac4e86b1049c3e2191fed827006766227faed (patch)
tree6ca602347a49ab9437cc7505301ccbefa18a708d /ci_tests
parent9e735e2059264b853c8fd0bdc7ccc034e9a4d886 (diff)
Only include the apk file from app-class deps in test_package
Test: CI Bug: 388850000 Change-Id: I4dfb36c74d70a669e87d688bb521d4518fb923ba
Diffstat (limited to 'ci_tests')
-rw-r--r--ci_tests/ci_test_package_zip.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci_tests/ci_test_package_zip.go b/ci_tests/ci_test_package_zip.go
index d9573a3e3..acfa8e073 100644
--- a/ci_tests/ci_test_package_zip.go
+++ b/ci_tests/ci_test_package_zip.go
@@ -190,6 +190,10 @@ func createOutput(ctx android.ModuleContext, pctx android.PackageContext) androi
}
for _, installedFile := range installedFilesInfo.InstallFiles {
+ // there are additional installed files for some app-class modules, we only need the .apk files in the test package
+ if class == "app" && installedFile.Ext() != ".apk" {
+ continue
+ }
name := removeFileExtension(installedFile.Base())
f := strings.TrimPrefix(installedFile.String(), productOut+"/")
if strings.HasPrefix(f, "out") {