diff options
Diffstat (limited to 'android/config.go')
| -rw-r--r-- | android/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index e86fc2783..4992882b9 100644 --- a/android/config.go +++ b/android/config.go @@ -127,6 +127,11 @@ func (c Config) PrimaryBuilderInvocations() []bootstrap.PrimaryBuilderInvocation return []bootstrap.PrimaryBuilderInvocation{} } +// RunningInsideUnitTest returns true if this code is being run as part of a Soong unit test. +func (c Config) RunningInsideUnitTest() bool { + return c.config.TestProductVariables != nil +} + // A DeviceConfig object represents the configuration for a particular device // being built. For now there will only be one of these, but in the future there // may be multiple devices being built. |