Skip to content

Commit

Permalink
fixup! kola/docker: make selinux optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Tortuyaux committed Jun 15, 2021
1 parent 4a38d69 commit 78fc03a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions kola/tests/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,17 +614,13 @@ func testDockerInfo(expectedFs string, c cluster.TestCluster) {
// hasSecurityOptions strictly checks that at least one of
// the Docker security option is enabled (seccomp, selinux).
func hasSecurityOptions(opts []string) bool {
var selinux, seccomp bool
for _, opt := range opts {
switch opt {
case "selinux":
selinux = true
case "seccomp":
seccomp = true
case "selinux", "seccomp":
default:
return false
}
}

return selinux || seccomp
return true
}

0 comments on commit 78fc03a

Please sign in to comment.