aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-03-09 08:53:53 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-09 08:53:53 +0000
commitf617cab1a8babde8dfb0c3586d7799cd6f85c01b (patch)
tree886a708e98d64f212d7ad12d59933b2b8d0ad978
parent8c12f12b032fbaa784e639515768f1f7ed59dc8d (diff)
parentb771ffb9cd2c133c7fdc3aaca5ed39cce21a0952 (diff)
Merge "Optimize releng cloning when running unit tests"
-rwxr-xr-xrun_unit_tests.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/run_unit_tests.sh b/run_unit_tests.sh
index e0660910a..4c43bfc96 100755
--- a/run_unit_tests.sh
+++ b/run_unit_tests.sh
@@ -25,12 +25,10 @@ pip install -r $WORKSPACE/test-requirements.txt
pip install $WORKSPACE
#install releng
-cd $WORKSPACE/../
rm -rf releng-unittests
-git clone https://gerrit.opnfv.org/gerrit/releng releng-unittests
+git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng releng-unittests
pip install releng-unittests/modules/
rm -fr releng-unittests
-cd $WORKSPACE
export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml
# unit tests