Merge "Print the output from RBE bootstrap shutdown" am: 9008ca3005 am: 5e60140fa0

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

Change-Id: I7e8a20ab58d96d2575aeeb1430a59a6dbae2b344
This commit is contained in:
Kousik Kumar
2021-03-24 03:39:18 +00:00
committed by Automerger Merge Worker

View File

@@ -112,9 +112,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.