aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2023-12-05 01:42:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-12-05 01:42:26 +0000
commit474dd480b846180860db0ddac5e4bb9d5f898aaa (patch)
treef1c1f2d5d7cd6f1562dccdcdf852cb51a4c85d7f
parent3f0102d7460691864155e358aaae3139d3152590 (diff)
parent27940dcdb29b78e5810c4103615a6ffc70a67a6e (diff)
downloadcsuite-474dd480b846180860db0ddac5e4bb9d5f898aaa.tar.gz
Merge "Follow changes to android.ContentFromFileRuleForTests" into main am: dc470932bb am: 27940dcdb2
Original change: https://android-review.googlesource.com/c/platform/test/app_compat/csuite/+/2817026 Change-Id: I34d3ca6b20c1b67823a9c369a87184419dcef63a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--tools/csuite_test/csuite_test_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/csuite_test/csuite_test_test.go b/tools/csuite_test/csuite_test_test.go
index 5e0878f..58423fc 100644
--- a/tools/csuite_test/csuite_test_test.go
+++ b/tools/csuite_test/csuite_test_test.go
@@ -120,7 +120,7 @@ func TestValidBpMissingPlanIncludeGeneratesPlanXmlWithoutPlaceholders(t *testing
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if strings.Contains(content, "{") || strings.Contains(content, "}") {
t.Errorf("The generated plan name contains a placeholder: %s", content)
}
@@ -135,7 +135,7 @@ func TestGeneratedTestPlanContainsPlanName(t *testing.T) {
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if !strings.Contains(content, "plan_name") {
t.Errorf("The plan name is missing from the generated plan: %s", content)
}
@@ -150,7 +150,7 @@ func TestGeneratedTestPlanContainsTemplatePath(t *testing.T) {
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if !strings.Contains(content, "config/plan_name/config_template.xml.template") {
t.Errorf("The template path is missing from the generated plan: %s", content)
}
@@ -166,7 +166,7 @@ func TestGeneratedTestPlanContainsExtraTemplatePath(t *testing.T) {
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if !strings.Contains(content, "config/plan_name/extra.xml.template") {
t.Errorf("The extra template path is missing from the generated plan: %s", content)
}
@@ -184,7 +184,7 @@ func TestGeneratedTestPlanDoesNotContainExtraTemplatePath(t *testing.T) {
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if strings.Contains(content, "extra-templates") {
t.Errorf("The extra-templates param should not be included in the generated plan: %s", content)
}
@@ -225,7 +225,7 @@ func TestGeneratedTestPlanContainsPlanInclude(t *testing.T) {
`)
module := ctx.ModuleForTests("plan_name", config.BuildOS.String()+"_common")
- content := android.ContentFromFileRuleForTests(t, module.Output("config/plan_name.xml"))
+ content := android.ContentFromFileRuleForTests(t, ctx, module.Output("config/plan_name.xml"))
if !strings.Contains(content, `"includes/plan_name.xml"`) {
t.Errorf("The plan include path is missing from the generated plan: %s", content)
}