Suppress resourceshrinker stdout in soong

The resourceshrinker command prints an info log for successful runs,
which we don't really need to surface in build output. Suppress stdout
for such invocations; errors will surface through stderr.

Bug: 202959019
Test: m + compare log output
Change-Id: I08ed465bb7e3a0fa8d5e967d858f6739b5ef7fad
This commit is contained in:
Jared Duke 2023-06-16 23:12:33 +00:00
parent 9241da9662
commit 91f32e7ae5

View file

@ -22,7 +22,8 @@ import (
var shrinkResources = pctx.AndroidStaticRule("shrinkResources",
blueprint.RuleParams{
Command: `${config.ResourceShrinkerCmd} --output $out --input $in --raw_resources $raw_resources`,
// Note that we suppress stdout to avoid successful log confirmations.
Command: `${config.ResourceShrinkerCmd} --output $out --input $in --raw_resources $raw_resources >/dev/null`,
CommandDeps: []string{"${config.ResourceShrinkerCmd}"},
}, "raw_resources")