diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-03 21:04:24 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-03 21:20:25 +0900 |
| commit | b452e1047ccd3e1826da16416430e6638270155b (patch) | |
| tree | 7a2338fb7db0b625b38dab1911edcde65271b679 /test/internal/sandbox/assert.go | |
| parent | aa35067f0caeb709edd60dc76fc68ac33c3e1a25 (diff) | |
test/internal/testsuite: move fs checker
This also cleans up its API and improves error messages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/internal/sandbox/assert.go')
| -rw-r--r-- | test/internal/sandbox/assert.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
