We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd39124 commit 1c40e59Copy full SHA for 1c40e59
validation/linux_seccomp/linux_seccomp.go
@@ -1,11 +1,15 @@
1
package main
2
3
import (
4
+ tap "github.com/mndrix/tap-go"
5
"github.com/opencontainers/runtime-tools/generate/seccomp"
6
"github.com/opencontainers/runtime-tools/validation/util"
7
)
8
9
func main() {
10
+ t := tap.New()
11
+ t.Header(0)
12
+ defer t.AutoPlan()
13
g, err := util.GetDefaultGenerator()
14
if err != nil {
15
util.Fatal(err)
@@ -16,8 +20,10 @@ func main() {
16
20
}
17
21
g.SetDefaultSeccompAction("allow")
18
22
g.SetSyscallAction(syscallArgs)
19
- err = util.RuntimeInsideValidate(g, nil, nil)
23
+ err = util.RuntimeInsideValidate(g, t, nil)
24
+ t.Ok(err == nil, "seccomp action is added correctly")
25
- util.Fatal(err)
26
+ t.Fail(err.Error())
27
28
+
29
0 commit comments