Print the output from RBE bootstrap shutdown am: 91a46d0ef4 am: 1f3a7f6ccf am: 6874a5b8d0

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/14371203

Change-Id: I7a0c74d03a14f0d6e4ec320306d965dd13b10b2e
This commit is contained in:
Kousik Kumar
2021-04-30 05:23:14 +00:00
committed by Automerger Merge Worker

View File

@@ -87,9 +87,15 @@ func startRBE(ctx Context, config Config) {
func stopRBE(ctx Context, config Config) {
cmd := Command(ctx, config, "stopRBE bootstrap", rbeCommand(ctx, config, bootstrapCmd), "-shutdown")
if output, err := cmd.CombinedOutput(); err != nil {
output, err := cmd.CombinedOutput()
if err != nil {
ctx.Fatalf("rbe bootstrap with shutdown failed with: %v\n%s\n", err, output)
}
if len(output) > 0 {
fmt.Fprintln(ctx.Writer, "")
fmt.Fprintln(ctx.Writer, fmt.Sprintf("%s", output))
}
}
// DumpRBEMetrics creates a metrics protobuf file containing RBE related metrics.