pkg/sysinfo: use correct name for AppArmor in t.Skip()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-07-14 17:04:12 +02:00
parent 9b795c3e50
commit 4ace1998e5

View File

@@ -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()