Skip to content

Commit

Permalink
sweet/benchmarks/go-build: pass through stdout/stderr
Browse files Browse the repository at this point in the history
In case systemd-run fails, we'd like to see the error in results.

For golang/go#54760.

Change-Id: Id19d938308d25cf37bbb9e129ce1ec9e89ac8726
  • Loading branch information
prattmic committed Aug 29, 2022
1 parent b6ab218 commit 730f3a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sweet/benchmarks/go-build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func run(pkgPath string) error {
}
baseCmd.Dir = pkgPath
baseCmd.Env = common.NewEnvFromEnviron().MustSet("GOROOT=" + filepath.Dir(filepath.Dir(goTool))).Collapse()
baseCmd.Stdout = os.Stdout
baseCmd.Stderr = os.Stderr
cmd, err := cgroups.WrapCommand(baseCmd, "test.scope")
if err != nil {
return err
Expand Down

0 comments on commit 730f3a4

Please sign in to comment.