Fix git clone for local test runs
When running in CI, zuul-cloner clones repos to namespaced directories, e.g. openstack-infra/puppet-cgit/. When running regular git clone, by default it clones directly into the present working directory, e.g. puppet-cgit/. This makes the relative directory inconsistent between developer-run tests and CI jobs. This patch fixes the issue by telling git clone to clone into the same directory that zuul-cloner would clone it to. Change-Id: I30ef38cda3420efc8834342298441e0733f0fb99
This commit is contained in:
parent
df927cacf9
commit
101df6f424
|
@ -42,7 +42,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}/tools/install_modules_acceptance.sh"
|
||||
|
|
Loading…
Reference in New Issue