From 239dddee71e39dfbc11840445dfeccd6e92046d9 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Thu, 5 Dec 2024 12:15:39 +0000 Subject: [PATCH] lint --- spec/configuration/cgroup_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/configuration/cgroup_spec.rb b/spec/configuration/cgroup_spec.rb index 6711961..be1f897 100644 --- a/spec/configuration/cgroup_spec.rb +++ b/spec/configuration/cgroup_spec.rb @@ -5,11 +5,10 @@ cgroups = command('find /sys/fs/cgroup/redborder.slice -type d -name "redborder-*" -not -name "*.service"').stdout.split +describe file('/sys/fs/cgroup/redborder.slice') do + it { should exist } +end describe 'Check cgroups' do - describe file('/sys/fs/cgroup/redborder.slice') do - it { should exist } - end - cgroups.each do |cgroup| next if cgroup.include?('snortd') || cgroup.include?('barnyard2')