From: Morgan Richomme Date: Wed, 8 Mar 2017 10:07:04 +0000 (+0100) Subject: Optimize releng cloning when running unit tests X-Git-Tag: 0.2~835^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=b771ffb9cd2c133c7fdc3aaca5ed39cce21a0952;p=functest-xtesting.git Optimize releng cloning when running unit tests not need to clone full releng depth 1 is enough do not go out of workspace anymore..never... Change-Id: I1d2dbc30bec6c168ef7ddf3327cb00fff4056aa1 Signed-off-by: Morgan Richomme --- diff --git a/run_unit_tests.sh b/run_unit_tests.sh index e0660910..4c43bfc9 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