Skip to content

Commit

Permalink
Add host commands support for run_post_start_commands
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Chulak <[email protected]>
  • Loading branch information
Jedoku authored and kostyanf14 committed Oct 21, 2024
1 parent 35f4df8 commit e5273dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/engines/hcktest/hcktest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,25 @@ def run_clients(scope, run_opts = {})
this platform is incorrect'
end

def run_clients_post_start_host_commands
@project.engine.drivers&.each do |driver|
driver.post_start_commands&.each do |command|
return unless command.host_run

@logger.info("Running command (#{command.desc}) on host")
run_cmd(command.host_run)
end
end
end

def configure_and_synchronize_clients
run_only = @project.options.test.manual && @project.options.test.driver_path.nil?

@clients.each_value do |client|
client.configure(run_only:)
end

run_clients_post_start_host_commands
@clients.each_value(&:synchronize)
end

Expand Down

0 comments on commit e5273dd

Please sign in to comment.