Skip to content

Commit

Permalink
hcktest: Add support for devices without a driver
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com>
  • Loading branch information
kostyanf14 authored and YanVugenfirer committed Oct 24, 2021
1 parent bde02ea commit f791636
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/engines/hcktest/hcktest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ def init_workspace
def validate_paths
normalize_paths
@drivers.each do |driver|
method = driver['install_method']
if method == 'no-drv'
@project.logger.info("Driver paths validation skipped for #{driver['name']}")
next
end

paths = [
"#{@driver_path}/#{driver['inf']}",
"#{@driver_path}/#{driver['short']}/#{driver['inf']}"
Expand Down
5 changes: 5 additions & 0 deletions lib/setupmanagers/hckclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ def install_drivers

@project.engine.drivers&.each do |driver|
method = driver['install_method']
if method == 'no-drv'
@project.logger.info("Driver installation skipped for #{driver['name']} in #{@name}")
next
end

inf = driver['inf']

@logger.info("Installing #{method} driver #{inf} in #{@name}")
Expand Down

0 comments on commit f791636

Please sign in to comment.