Merge "Add TestContext parameter to ContentFromFileRuleForTests" into main
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user