From: Morgan Richomme Date: Wed, 8 Mar 2017 10:07:04 +0000 (+0100) Subject: Optimize releng cloning when running unit tests X-Git-Tag: danube.1.RC1~65^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F30055%2F4;p=functest.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 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