From b452e1047ccd3e1826da16416430e6638270155b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 3 Oct 2026 21:04:24 +0900 Subject: test/internal/testsuite: move fs checker This also cleans up its API and improves error messages. Signed-off-by: Ophestra --- test/internal/sandbox/assert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/internal/sandbox/assert.go') diff --git a/test/internal/sandbox/assert.go b/test/internal/sandbox/assert.go index e2bcc8ae..1194befb 100644 --- a/test/internal/sandbox/assert.go +++ b/test/internal/sandbox/assert.go @@ -33,7 +33,7 @@ func fatalf(format string, v ...any) { fatalfFunc(format, v...) } type TestCase struct { Env []string `json:"env"` - FS *FS `json:"fs"` + FS *testsuite.FS `json:"fs"` Mount []*mountinfo.Entry `json:"mount"` Seccomp bool `json:"seccomp"` @@ -110,7 +110,7 @@ func (t *T) MustCheck(want *TestCase) { } if want.FS != nil && t.FS != nil { - if err := want.FS.Compare(".", t.FS); err != nil { + if err := want.FS.Compare(printfFunc, ".", t.FS); err != nil { fatalf("%v", err) } } else { -- cgit v1.3.1