Skip to content

Commit

Permalink
(PDK-1200) Validate should honor testing from source
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Jen committed Oct 30, 2018
1 parent 2ae1dba commit cdbf095
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pdk/cli/validate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ module PDK::CLI
puppet_env = PDK::CLI::Util.puppet_from_opts_or_env(opts)
PDK::Util::PuppetVersion.fetch_puppet_dev if opts.key?(:'puppet-dev')
PDK::Util::RubyVersion.use(puppet_env[:ruby_version])

options.merge!(puppet_env[:gemset])

PDK::Util::Bundler.ensure_bundle!(puppet_env[:gemset])

exit_code = 0
Expand Down
1 change: 1 addition & 0 deletions lib/pdk/validate/base_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def self.invoke(report, options = {})

command = PDK::CLI::Exec::Command.new(*cmd_argv).tap do |c|
c.context = :module
c.environment = { 'PUPPET_GEM_VERSION' => options[:puppet] } if options[:puppet]
unless options[:split_exec]
exec_group = options[:exec_group]
if exec_group
Expand Down

0 comments on commit cdbf095

Please sign in to comment.