Use t.Skip() when selinux is not enabled

Signed-off-by: Brian Goff <brian.goff@docker.com>
This commit is contained in:
Brian Goff 2018-01-09 15:43:28 -05:00
parent 896cbd70f7
commit 96484eb3e7

View File

@ -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 {