Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created December 11, 2014 18:57
Show Gist options
  • Select an option

  • Save neilhwatson/20dcb107ee27929273c3 to your computer and use it in GitHub Desktop.

Select an option

Save neilhwatson/20dcb107ee27929273c3 to your computer and use it in GitHub Desktop.
Testing EFL with serverspec
vm.swappiness = 67
cd test/masterfiles; cf-agent -Kf ./promises.cf -D 019_efl_test
cd test/serverspec; rspec spec/localhost/019_efl_test_spec.rb
.
Finished in 0.04985 seconds
1 example, 0 failures
/sbin/sysctl vm.swappiness='60'
vm.swappiness = 60
cat test/serverspec/spec/localhost/019_efl_test_spec.rb
require 'spec_helper'
describe "019 efl test" do
context linux_kernel_parameter( 'vm.swappiness' ) do
its(:value) { should eq 63 }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment