aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox/assert.go')
-rw-r--r--test/sandbox/assert.go5
1 files changed, 4 insertions, 1 deletions
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) {