File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
cookbooks/aws-parallelcluster-slurm/test/controls Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 4646 end
4747
4848 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- end
56-
57- describe command ( "grep memory /proc/cgroups | awk '{print $4}'" ) do
58- its ( 'stdout.strip' ) { should eq '1' }
59- end
60- end
61-
62- describe 'check cgroup memory resource controller is enabled' do
63- subject { bash ( "grep memory /proc/cgroups | awk '{print $4}'" ) }
49+ subject { bash ( "sleep 5 && grep memory /proc/cgroups | awk '{print $4}'" ) }
6450 its ( 'exit_status' ) { should eq 0 }
6551 its ( 'stdout.strip' ) { should cmp 1 }
6652 end
You can’t perform that action at this time.
0 commit comments