Skip to content

Commit

Permalink
Use t.Skip() when selinux is not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Goff <brian.goff@docker.com>
  • Loading branch information
cpuguy83 committed Jan 9, 2018
1 parent 896cbd7 commit 96484eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/helpers_selinux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

func TestInitSelinuxOpts(t *testing.T) {
if !selinux.GetEnabled() {
return
t.Skip("selinux is not enabled")
}

for desc, test := range map[string]struct {
Expand Down

0 comments on commit 96484eb

Please sign in to comment.