summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kousik Kumar <kousikk@google.com> 2021-03-24 02:24:37 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-03-24 02:24:37 +0000
commit9008ca3005cdebf9791861290d3ebb52fb893ece (patch)
tree6ef9a873819b7a65175f00d29856769c4e5e0f0f
parentc5993b2c9d45aaef7df6c369c2443a868afe696a (diff)
parent20810525928bb589e33c8271da66f6cdd16f007e (diff)
Merge "Print the output from RBE bootstrap shutdown"
-rw-r--r--ui/build/rbe.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/build/rbe.go b/ui/build/rbe.go
index 1fabd9262..45ccd04cc 100644
--- a/ui/build/rbe.go
+++ b/ui/build/rbe.go
@@ -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.