From b771ffb9cd2c133c7fdc3aaca5ed39cce21a0952 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Wed, 8 Mar 2017 11:07:04 +0100 Subject: 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 --- run_unit_tests.sh | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit 1.2.3-korg