summaryrefslogtreecommitdiff
path: root/ci_tests
diff options
context:
space:
mode:
author Bill Yang <yangbill@google.com> 2025-03-20 08:54:11 +0000
committer Bill Yang <yangbill@google.com> 2025-03-22 12:21:56 +0000
commit870dbdc97b9ae3b1a1b8e221af1cbbb50d0bb041 (patch)
tree98a6a1e649e41622f2e3d03795a113281f084040 /ci_tests
parent716fc3438bce5e2018b47cf906195b4f9aecea5c (diff)
Add prepend_artifact_with_product attribute for dist
Add the new attribute to feet what test_package's requirement, moving the dist output naming logic from test_package to dist. Also add 4 allowed module names for the rest of the continuous_* test packages. Ignore-AOSP-First: Because the platform_tests conversion is in internal branch currently. Bug: 399246722 Test: m dist platform_tests Change-Id: I96e690f23e801c22fe66f0f234be8a1f9a84062f
Diffstat (limited to 'ci_tests')
-rw-r--r--ci_tests/ci_test_package_zip.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/ci_tests/ci_test_package_zip.go b/ci_tests/ci_test_package_zip.go
index d7aaa6686..4cadffddc 100644
--- a/ci_tests/ci_test_package_zip.go
+++ b/ci_tests/ci_test_package_zip.go
@@ -68,7 +68,7 @@ var (
pctx = android.NewPackageContext("android/soong/ci_tests")
// test_package module type should only be used for the following modules.
// TODO: remove "_soong" from the module names inside when eliminating the corresponding make modules
- moduleNamesAllowed = []string{"continuous_native_tests_soong", "continuous_instrumentation_tests_soong", "platform_tests"}
+ moduleNamesAllowed = []string{"continuous_instrumentation_tests_soong", "continuous_instrumentation_metric_tests_soong", "continuous_native_tests_soong", "continuous_native_metric_tests_soong", "platform_tests"}
)
func (p *testPackageZip) DepsMutator(ctx android.BottomUpMutatorContext) {
@@ -150,12 +150,6 @@ func (p *testPackageZip) GenerateAndroidBuildActions(ctx android.ModuleContext)
p.output = createOutput(ctx, pctx)
ctx.SetOutputFiles(android.Paths{p.output}, "")
-
- // dist the test output
- if ctx.ModuleName() == "platform_tests" {
- distedName := ctx.Config().Getenv("TARGET_PRODUCT") + "-tests-FILE_NAME_TAG_PLACEHOLDER.zip"
- ctx.DistForGoalWithFilename("platform_tests", p.output, distedName)
- }
}
func createOutput(ctx android.ModuleContext, pctx android.PackageContext) android.ModuleOutPath {