We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3285ca8 commit 148de32Copy full SHA for 148de32
cookbooks/aws-parallelcluster-slurm/test/controls/slurm_config_spec.rb
@@ -45,6 +45,20 @@
45
its('exit_status') { should eq 0 }
46
end
47
48
+ describe 'check cgroup memory resource controller is enabled' do
49
+ describe command('cat /proc/cgroups') do
50
+ its('stdout') { should match /memory/ }
51
+ end
52
+
53
+ describe command("grep memory /proc/cgroups") do
54
+ its('stdout') { should_not be_empty }
55
56
57
+ describe command("grep memory /proc/cgroups | awk '{print $4}'") do
58
+ its('stdout.strip') { should eq '1' }
59
60
61
62
describe 'check cgroup memory resource controller is enabled' do
63
subject { bash("grep memory /proc/cgroups | awk '{print $4}'") }
64
0 commit comments