From e32c06cf126f0a4945421224d7688aebd7f40e4b Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Feb 2018 10:53:37 +0800 Subject: [PATCH] Load puppet-openstack_spec_helper locally during tests Change-Id: Ifed0ab264a77e8e105d196e618a2ee6f4b0c57d6 Co-Authored-By: Mohammed Naser --- Gemfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index caddc65..def52b6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,15 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" group :development, :test, :system_tests do - gem 'puppet-openstack_spec_helper', :require => 'false', :git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper' + 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']