summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2021-11-02 16:43:57 +0000
committer Jingwen Chen <jingwen@google.com> 2021-11-08 13:38:28 +0000
commita47f28d28e90e053e823fce35f40b61063dfff20 (patch)
tree9abeee1f20e3aec29944bac78a8dc3eb2980a10b /android/testing.go
parent925942127a168b94b5e2144c5ec3f49c8386104b (diff)
bp2build: add support for soong_config_module_type.
Test: CI, go unit test Bug: 198556411 Change-Id: Idf862904d51d822f92af0c072341c31b7a02fc64
Diffstat (limited to 'android/testing.go')
-rw-r--r--android/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go
index b9d8fa878..6290d4317 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -458,6 +458,7 @@ func (ctx *TestContext) Register() {
// RegisterForBazelConversion prepares a test context for bp2build conversion.
func (ctx *TestContext) RegisterForBazelConversion() {
+ ctx.SetRunningAsBp2build()
RegisterMutatorsForBazelConversion(ctx.Context, ctx.bp2buildPreArch, ctx.bp2buildMutators)
}