mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pkg/sysinfo: use correct name for AppArmor in t.Skip()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -75,7 +75,7 @@ func checkSysInfo(t *testing.T, sysInfo *SysInfo) {
|
||||
func TestNewAppArmorEnabled(t *testing.T) {
|
||||
// Check if AppArmor is supported. then it must be TRUE , else FALSE
|
||||
if _, err := os.Stat("/sys/kernel/security/apparmor"); err != nil {
|
||||
t.Skip("App Armor Must be Enabled")
|
||||
t.Skip("AppArmor Must be Enabled")
|
||||
}
|
||||
|
||||
sysInfo := New()
|
||||
@@ -85,7 +85,7 @@ func TestNewAppArmorEnabled(t *testing.T) {
|
||||
func TestNewAppArmorDisabled(t *testing.T) {
|
||||
// Check if AppArmor is supported. then it must be TRUE , else FALSE
|
||||
if _, err := os.Stat("/sys/kernel/security/apparmor"); !os.IsNotExist(err) {
|
||||
t.Skip("App Armor Must be Disabled")
|
||||
t.Skip("AppArmor Must be Disabled")
|
||||
}
|
||||
|
||||
sysInfo := New()
|
||||
|
||||
Reference in New Issue
Block a user