]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
Fix git clone for locally running tests
authorColleen Murphy <colleen@gazlene.net>
Wed, 8 Jul 2015 18:40:45 +0000 (11:40 -0700)
committerColleen Murphy <colleen@gazlene.net>
Wed, 8 Jul 2015 18:56:15 +0000 (11:56 -0700)
Zuul-cloner's behavior is to clone the repository into a subdirectory
under a directory named for the repo namespace. Git's default behavior
is to just clone it directly into the present working directory. This
patch adds an argument to the git clone command to clone it into the
<namespace>/<repo name> directory, so that whether zuul-cloner or git
is used the repo ends up in the same directory relative to the PWD.

Change-Id: I8fd7ab1637fdc77cad69b37e9c063997a2a3287d

spec/spec_helper_acceptance.rb

index 6aa9a35cd45e9fb41f4f83eab19fb832f438f3b4..429e807c4282ee1d558caaab53feb75fc10ad492 100644 (file)
@@ -38,7 +38,7 @@ RSpec.configure do |c|
         zuul_clone_cmd += "git://git.openstack.org #{repo}"
         on host, zuul_clone_cmd
       else
-        on host, "git clone https://git.openstack.org/#{repo}"
+        on host, "git clone https://git.openstack.org/#{repo} #{repo}"
       end
 
       on host, "ZUUL_REF=#{zuul_ref} ZUUL_BRANCH=#{zuul_branch} ZUUL_URL=#{zuul_url} bash #{repo}/install_modules.sh"