summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-06-17 12:32:40 -0700
committer Cole Faust <colefaust@google.com> 2024-06-17 12:32:40 -0700
commit43ddd08bd2b9af64cfbc58e2abf346be1b438d61 (patch)
tree83421f00a8a02ef2fcf993586c47a35d641d9c0f /android/testing.go
parent7dc42aa7afeb7fa9f630896d27959aba9f0f685b (diff)
Make required a configurable property
So that users can use select statements with it. Fixes: 347605145 Bug: 342006386 Test: m nothing --no-skip-soong-tests Change-Id: Ica0ca6d1725b000b3748c0293e5a9f9b38ed87f9
Diffstat (limited to 'android/testing.go')
-rw-r--r--android/testing.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go
index 6518f4a53..b9c27177f 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -224,6 +224,10 @@ func (ctx *TestContext) OtherModuleProviderAdaptor() OtherModuleProviderContext
})
}
+func (ctx *TestContext) OtherModulePropertyErrorf(module Module, property string, fmt_ string, args ...interface{}) {
+ panic(fmt.Sprintf(fmt_, args...))
+}
+
// registeredComponentOrder defines the order in which a sortableComponent type is registered at
// runtime and provides support for reordering the components registered for a test in the same
// way.