Skip to content

Commit

Permalink
Merge pull request #419 from kjetilho/modulepath_regression
Browse files Browse the repository at this point in the history
Skip non-existing paths in $MODULEPATH silently
  • Loading branch information
bastelfreak authored Dec 10, 2023
2 parents 66ceded + c3c8171 commit 3ac5b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppetlabs_spec_helper/module_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def verify_contents(subject, title, expected_lines)

Dir.entries(dir).grep_v(/^\./).map { |f| File.join(dir, f, 'spec', 'lib') }
end
components.flatten.each do |d|
components.compact.flatten.each do |d|
$LOAD_PATH << d if FileTest.directory?(d) && !$LOAD_PATH.include?(d)
end

Expand Down

0 comments on commit 3ac5b34

Please sign in to comment.