Skip to content

Commit

Permalink
Improve starting ipmi_sim program
Browse files Browse the repository at this point in the history
Improve killing fake_ipmi_host.sh
  • Loading branch information
maximenoel8 committed Oct 17, 2024
1 parent 0a200a4 commit 8959512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/features/step_definitions/command_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,12 @@
raise ScriptError, 'File injection failed' unless success
end
server.run('chmod +x /etc/ipmi/fake_ipmi_host.sh', verbose: true, check_errors: true)
server.run('ipmi_sim -n < /dev/null > /dev/null &', verbose: true, check_errors: true)
server.run('nohup ipmi_sim -n > /var/log/ipmi_sim.log 2>&1 &', verbose: true, check_errors: true)
end

When(/^the server stops mocking an IPMI host$/) do
get_target('server').run('pkill ipmi_sim')
get_target('server').run('pkill fake_ipmi_host.sh || :')
get_target('server').run("ps aux | grep [f]ake_ipmi_host.sh | awk '{print $2}' | xargs kill")
end

When(/^the controller starts mocking a Redfish host$/) do
Expand Down

0 comments on commit 8959512

Please sign in to comment.