Load puppet-openstack_spec_helper locally during tests

Change-Id: I2e559cd5260b79d6e838834f4065f128eca6b981
This commit is contained in:
ZhongShengping 2018-12-20 10:52:16 +08:00
parent 54df3c15ad
commit e5c7502127
1 changed files with 9 additions and 3 deletions

12
Gemfile
View File

@ -1,9 +1,15 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"
group :development, :test, :system_tests do
gem 'puppet-openstack_spec_helper',
:git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
:require => false
if ENV['ZUUL_PROJECT'] == 'openstack/puppet-openstack_spec_helper'
gem 'puppet-openstack_spec_helper',
:path => '../..',
:require => 'false'
else
gem 'puppet-openstack_spec_helper',
:git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
:require => 'false'
end
end
if facterversion = ENV['FACTER_GEM_VERSION']