Skip to content

Commit

Permalink
Fix ruboco offense
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Nov 14, 2024
1 parent 4fddd33 commit ee07b2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@
end
server.run('chmod +x /etc/ipmi/fake_ipmi_host.sh', verbose: true, check_errors: true)
# Check if ipmi_sim is already running
if server.run('pgrep -f ipmi_sim', verbose: false, check_errors: false)[1] != 0
server.run('ipmi_sim -n < /dev/null > /dev/null &', verbose: true, check_errors: true)
else
if server.run('pgrep -f ipmi_sim', verbose: false, check_errors: false)[1].zero?
log 'ipmi_sim is already running; skipping startup.'
else
server.run('ipmi_sim -n < /dev/null > /dev/null &', verbose: true, check_errors: true)
end
end

Expand Down

0 comments on commit ee07b2b

Please sign in to comment.