From 996b42634dba83a488d0ac67eac954c0b5582c71 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 27 Mar 2025 03:09:16 +0900 Subject: test/sandbox: invoke check program directly Signed-off-by: Ophestra --- test/sandbox/assert.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/sandbox/assert.go') diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go index 43cdd9d4..3cf81ffb 100644 --- a/test/sandbox/assert.go +++ b/test/sandbox/assert.go @@ -34,10 +34,13 @@ type T struct { MountsPath string } -func (t *T) MustCheckFile(wantFilePath string) { +func (t *T) MustCheckFile(wantFilePath, markerPath string) { var want *TestCase mustDecode(wantFilePath, &want) t.MustCheck(want) + if _, err := os.Create(markerPath); err != nil { + fatalf("cannot create success marker: %v", err) + } } func (t *T) MustCheck(want *TestCase) { -- cgit v1.3.1