diff --git a/testsuite/features/step_definitions/command_steps.rb b/testsuite/features/step_definitions/command_steps.rb index a67ff7a7a67..1db63f4f0ab 100644 --- a/testsuite/features/step_definitions/command_steps.rb +++ b/testsuite/features/step_definitions/command_steps.rb @@ -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] == 0 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