Skip to content

Commit

Permalink
Merge pull request #9253 from joshcooper/init_fix
Browse files Browse the repository at this point in the history
Return boolean instead of Beaker::Result
  • Loading branch information
mhashizume authored Feb 12, 2024
2 parents e24d890 + 9a55434 commit b04e822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions acceptance/tests/resource/service/init_on_systemd.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
test_name 'SysV on default Systemd Service Provider Validation' do

confine :to, :platform => /el-[6-8]|centos|fedora-(2[0-9])/ do |h|
on(h, 'which systemctl', :acceptable_exit_codes => [0, 1]) do |result|
result.stdout =~ /systemctl/
end
result = on(h, 'which systemctl', :acceptable_exit_codes => [0, 1])
result.stdout =~ /systemctl/
end

tag 'audit:high',
Expand Down

0 comments on commit b04e822

Please sign in to comment.