mirror of
https://github.com/puppetlabs/beaker-vmpooler.git
synced 2026-01-26 02:58:42 -05:00
Merge pull request #8 from puppetlabs/maint/fix-rake-for-abs
(maint) Add option for BEAKER_HOSTS file to be pre-generated in acceptance tests
This commit is contained in:
commit
f6c0f255b1
2 changed files with 3 additions and 1 deletions
1
Gemfile
1
Gemfile
|
|
@ -19,6 +19,7 @@ end
|
|||
# don't want to create a transitive dependency
|
||||
group :acceptance_testing do
|
||||
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 3.0')
|
||||
gem "beaker-abs", *location_for(ENV['ABS_VERSION'] || '~> 0.3.0')
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
3
Rakefile
3
Rakefile
|
|
@ -20,11 +20,12 @@ Runs the base beaker acceptance test using the hypervisor library
|
|||
beaker_gem_spec = Gem::Specification.find_by_name('beaker')
|
||||
beaker_gem_dir = beaker_gem_spec.gem_dir
|
||||
beaker_test_base_dir = File.join(beaker_gem_dir, 'acceptance/tests/base')
|
||||
beaker_hosts = ENV['BEAKER_HOSTS'] || 'redhat7-64af-64default.mdcal'
|
||||
load_path_option = File.join(beaker_gem_dir, 'acceptance/lib')
|
||||
sh("beaker",
|
||||
"--tests", beaker_test_base_dir,
|
||||
"--log-level", "verbose",
|
||||
"--hosts", "redhat7-64af-redhat7-64default.mdcal",
|
||||
"--hosts", beaker_hosts,
|
||||
"--load-path", load_path_option,
|
||||
"--keyfile", ENV['KEY'] || "#{ENV['HOME']}/.ssh/id_rsa-acceptance")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue