Use t.Skip() when selinux is not enabled
Signed-off-by: Brian Goff <brian.goff@docker.com>
This commit is contained in:
parent
896cbd70f7
commit
96484eb3e7
@ -28,7 +28,7 @@ import (
|
|||||||
|
|
||||||
func TestInitSelinuxOpts(t *testing.T) {
|
func TestInitSelinuxOpts(t *testing.T) {
|
||||||
if !selinux.GetEnabled() {
|
if !selinux.GetEnabled() {
|
||||||
return
|
t.Skip("selinux is not enabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
for desc, test := range map[string]struct {
|
for desc, test := range map[string]struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user