Skip to content

Commit 3d93d64

Browse files
committed
integration: expose backend logs in sandbox interface
Signed-off-by: CrazyMax <[email protected]>
1 parent e86ba94 commit 3d93d64

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

util/testutil/integration/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type Sandbox interface {
4545

4646
Context() context.Context
4747
Cmd(...string) *exec.Cmd
48+
Logs() map[string]*bytes.Buffer
4849
PrintLogs(*testing.T)
4950
ClearLogs()
5051
NewRegistry() (string, error)

util/testutil/integration/sandbox.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ func (sb *sandbox) Context() context.Context {
7272
return sb.ctx
7373
}
7474

75+
func (sb *sandbox) Logs() map[string]*bytes.Buffer {
76+
return sb.logs
77+
}
78+
7579
func (sb *sandbox) PrintLogs(t *testing.T) {
7680
printLogs(sb.logs, t.Log)
7781
}

0 commit comments

Comments
 (0)