Fix git clone for locally running tests
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: Ie5db369448f7fc0520bb559c134b2a56bb2b6743
This commit is contained in:
parent
65c5c8c35a
commit
6d6f0bf843
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user