From 34d28336f4ccd1fa02741570a27e95d07e754d2f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 26 Apr 2021 23:25:02 +0900 Subject: [PATCH] Prefetch neutron-tempest-plugin This change makes CI job use prefetched neutron-tempest-plugin codes instead of cloning codes from git. Change-Id: I8d0d0cffb0a554a3322a152f5c1a6d635f14e734 --- run_tests.sh | 7 ++++++- zuul.d/base.yaml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index d907ac0bc..c41a4d783 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -323,7 +323,12 @@ if uses_debs; then # TODO(tobias-urdin): We must have the neutron-tempest-plugin to even test Neutron, is also required by # vpnaas and dynamic routing projects. $SUDO apt install -y python3-pip - git clone https://opendev.org/openstack/neutron-tempest-plugin /tmp/openstack/neutron-tempest-plugin + + if [ -d /home/zuul/src/opendev.org/openstack/neutron-tempest-plugin ]; then + cp -R /home/zuul/src/opendev.org/openstack/neutron-tempest-plugin /tmp/openstack/neutron-tempest-plugin + else + git clone https://opendev.org/openstack/neutron-tempest-plugin /tmp/openstack/neutron-tempest-plugin + fi pushd /tmp/openstack/neutron-tempest-plugin $SUDO pip3 install . popd diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml index 7d2b1474b..22e1c0996 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -48,6 +48,7 @@ - openstack/puppet-watcher - openstack/puppet-zaqar - openstack/tempest + - openstack/neutron-tempest-plugin - job: name: puppet-openstack-integration-run-base