diff options
author | 2017-03-08 11:07:04 +0100 | |
---|---|---|
committer | 2017-03-09 08:44:50 +0100 | |
commit | b771ffb9cd2c133c7fdc3aaca5ed39cce21a0952 (patch) | |
tree | 90b7e1fa16f07d749be8e25da83aa4ffbd494266 /run_unit_tests.sh | |
parent | d3c6a95ea4b35c01b20d24c14acfaf4260d063a4 (diff) |
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 <morgan.richomme@orange.com>
Diffstat (limited to 'run_unit_tests.sh')
-rwxr-xr-x | run_unit_tests.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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 |