Skip to content

Commit 36e9b37

Browse files
authored
Merge pull request #602 from q384566678/create-validation
validation: Implement ProcArgsApplyUntilStart
2 parents 5d77ca3 + d5630f7 commit 36e9b37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

validation/start.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ func main() {
5353
if err != nil {
5454
util.Fatal(err)
5555
}
56+
_, err = os.Stat(output)
57+
// check the existence of the output file
58+
util.SpecErrorOK(t, err != nil && os.IsNotExist(err), specerror.NewError(specerror.ProcArgsApplyUntilStart, fmt.Errorf("`process.args` MUST NOT be applied until triggered by the start operation"), rspecs.Version), err)
59+
5660
// start a `created` container
5761
err = r.Start()
5862
if err != nil {

0 commit comments

Comments
 (0)