ENV['MACHINES'] overrides [first second]
Integration tests need two virtual machines to complete. However, when running a single integration test (via SPEC=...), it will save time to not run the second virtual machine if it is not needed. Change-Id: I0946c7e999186aebf5dc84661112518f63f45ce3 Signed-off-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
parent
be3cf7c9da
commit
e452e22c7a
|
@ -88,6 +88,12 @@ for which integration tests are going to be run. The default is
|
|||
RELEASES='cuttlefish dumpling emperor' \
|
||||
bundle exec rake spec:system
|
||||
|
||||
The MACHINES environment variable contains the list of virtual
|
||||
machines that are created for integration tests to use. The default is
|
||||
|
||||
* MACHINES='first second' \
|
||||
bundle exec rake spec:system
|
||||
|
||||
On success it should complete with
|
||||
|
||||
...
|
||||
|
|
|
@ -30,7 +30,8 @@ RSpec.configure do |c|
|
|||
c.include RSpecSystemPuppet::Helpers
|
||||
|
||||
c.before :suite do
|
||||
[ 'first', 'second' ].each do |vm|
|
||||
machines = ENV['MACHINES'] ? ENV['MACHINES'].split : [ 'first', 'second' ]
|
||||
machines.each do |vm|
|
||||
puppet_install(:node => vm)
|
||||
puppet_module_install(:source => proj_root,
|
||||
:module_name => 'ceph',
|
||||
|
|
Loading…
Reference in New Issue