Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91a46d0e authored by Kousik Kumar's avatar Kousik Kumar
Browse files

Print the output from RBE bootstrap shutdown

The output from bootstrap would contain the a one-line summary of RBE
download / upload stats.

Bug: b/183007125
Change-Id: I90082a8433504e40bbf92992c3c8d1d656c49429
Merged-In: I90082a8433504e40bbf92992c3c8d1d656c49429
parent b5d58b3e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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.