diff options
| author | 2025-02-05 22:34:27 +0000 | |
|---|---|---|
| committer | 2025-02-05 23:56:03 +0000 | |
| commit | ace33911e77a93cd822eacc475c4034154e8de08 (patch) | |
| tree | eb0a0493b6a81f6bcf5b4e3211d10d2b39b1fdf0 | |
| parent | a62b3f9c2dc6ce31f898a22b67e8602e0e8d743c (diff) | |
Introduce an environment var to run "Test for dangling rules"
This test currently only runs on checkbuilds. To help with validations
of soong only packaging, introduce an environment variable to run this
test.
Test: RUN_BUILD_TESTS=true m nothing
Test: Verified that "Test for dangling rules" is in logs
Bug: 394096939
Bug: 393617060
Change-Id: I0fc5b38da6ff58fb952245b15073ed7015f9f5a6
| -rw-r--r-- | ui/build/build.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/build/build.go b/ui/build/build.go index ea867826c..95d7831d2 100644 --- a/ui/build/build.go +++ b/ui/build/build.go @@ -427,6 +427,9 @@ func evaluateWhatToRun(config Config, verboseln func(v ...interface{})) int { if config.Checkbuild() { what |= RunBuildTests } + if value, ok := config.environ.Get("RUN_BUILD_TESTS"); ok && value == "true" { + what |= RunBuildTests + } if !config.SkipConfig() { what |= RunProductConfig } else { |