Sha256: b41a13ea2add0b9160b2c024c9628f14f53269725fb0453cb96f8cdbd1287651

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'RedHat'
end

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should eq 1 }
  its(:command) { should eq "cgget -n -r cpuset.cpus group1 | awk '{print $2}'" }
end

describe cgroup('group1') do
  let(:stdout) { "1\r\n" }
  its('cpuset.cpus') { should_not eq 0 }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serverspec-0.10.7 spec/plamo/cgroup_spec.rb
serverspec-0.10.6 spec/plamo/cgroup_spec.rb
serverspec-0.10.5 spec/plamo/cgroup_spec.rb