Skip to content

Commit

Permalink
integration: expose backend logs in sandbox interface
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Jan 8, 2023
1 parent e86ba94 commit 3d93d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions util/testutil/integration/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type Sandbox interface {

Context() context.Context
Cmd(...string) *exec.Cmd
Logs() map[string]*bytes.Buffer
PrintLogs(*testing.T)
ClearLogs()
NewRegistry() (string, error)
Expand Down
4 changes: 4 additions & 0 deletions util/testutil/integration/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ func (sb *sandbox) Context() context.Context {
return sb.ctx
}

func (sb *sandbox) Logs() map[string]*bytes.Buffer {
return sb.logs
}

func (sb *sandbox) PrintLogs(t *testing.T) {
printLogs(sb.logs, t.Log)
}
Expand Down

0 comments on commit 3d93d64

Please sign in to comment.