We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 201c12d + 930ae78 commit 1fff77dCopy full SHA for 1fff77d
acceptance/tests/resource/service/init_on_systemd.rb
@@ -1,9 +1,8 @@
1
test_name 'SysV on default Systemd Service Provider Validation' do
2
3
confine :to, :platform => /el-[6-8]|centos|fedora-(2[0-9])/ do |h|
4
- on(h, 'which systemctl', :acceptable_exit_codes => [0, 1]) do |result|
5
- result.stdout =~ /systemctl/
6
- end
+ result = on(h, 'which systemctl', :acceptable_exit_codes => [0, 1])
+ result.stdout =~ /systemctl/
7
end
8
9
tag 'audit:high',
0 commit comments