aboutsummaryrefslogtreecommitdiff
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2023-11-02 16:56:39 -0700
committerColin Cross <ccross@android.com>2023-12-03 17:22:56 -0800
commitf61d03d241334e355216e46fecb06a84e8626f8a (patch)
treeb0cb060a6bf37e655bd8362adc9bd8b94e4feb55 /genrule
parent5c1d5fb21b19d6bcc8b0f83bc68124c21b31fabc (diff)
Add TestContext parameter to ContentFromFileRuleForTests
The next CL will need a TestContext parameter in ContentFromFileRuleForTests in order to retrieve the file rule contents from the Config. Add it and update all the tests that use it in order to simply review of the next CL. Bug: 306029038 Test: go test ./... Change-Id: Ia4b4c9854017ea3472fa2f8ba42cf7f72720496e
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/genrule/genrule_test.go b/genrule/genrule_test.go
index 7c14531bd..4cff4b886 100644
--- a/genrule/genrule_test.go
+++ b/genrule/genrule_test.go
@@ -543,7 +543,7 @@ func TestGenruleHashInputs(t *testing.T) {
for _, test := range testcases {
t.Run(test.name, func(t *testing.T) {
gen := result.ModuleForTests(test.name, "")
- manifest := android.RuleBuilderSboxProtoForTests(t, gen.Output("genrule.sbox.textproto"))
+ manifest := android.RuleBuilderSboxProtoForTests(t, result.TestContext, gen.Output("genrule.sbox.textproto"))
hash := manifest.Commands[0].GetInputHash()
android.AssertStringEquals(t, "hash", test.expectedHash, hash)