diff options
author | Cedric Ollivier <ollivier.cedric@gmail.com> | 2017-01-09 08:12:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-09 08:12:35 +0000 |
commit | 2000f080a5a8a8a436a1858d7dedf835f352e495 (patch) | |
tree | 0bea7fc0585e7c1b48adb13141aeffcfa5ad7aed /run_unit_tests.sh | |
parent | fec5f179377a891117c4f3f3665df47063a1e1bd (diff) | |
parent | 1406a4e103188cdb59bedfacc0d1a1ce3e15cb03 (diff) |
Merge changes from topics 'cover_parse_results', 'fix_test_show_credentials', 'remove_clean_results_dir', 'cover_argparse', 're.sub', 'mock_open', 'patch_filehandler'
* changes:
Cover ODLTests.parse_results()
Switch to assert_any_call in test_show_credentials
Remove clean_results_dir
Create ODLParser to parse sys.argv
Fully cover set_robotframework_vars
Use mock_open() to prevent stdout.txt
Patch logging.FileHandler
Diffstat (limited to 'run_unit_tests.sh')
-rwxr-xr-x | run_unit_tests.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/run_unit_tests.sh b/run_unit_tests.sh index e0e6195cb..79d05d3d1 100755 --- a/run_unit_tests.sh +++ b/run_unit_tests.sh @@ -2,32 +2,6 @@ set -o errexit set -o pipefail -function clean_results_dir { - if [ -d "/home/opnfv/functest/results" ] - then - sudo rm -rf /home/opnfv/functest/results - fi -} - -# ****************************** -# prepare the env for the tests -# ****************************** -# clean useless results dir -# should be done at the end -# but in case of crash during unit test -# clean it anyway -clean_results_dir - -# TODO clean that... -# Create log dir if needed -# log shall be disabled during unit tests -# fix to be done in Logger -echo "Create dummy log file...." -sudo mkdir -p /home/opnfv/functest/results/odl -sudo touch /home/opnfv/functest/results/functest.log -sudo touch /home/opnfv/functest/results/odl/stdout.txt -sudo chmod -Rf a+rw /home/opnfv - # Either Workspace is set (CI) if [ -z $WORKSPACE ] then @@ -69,10 +43,4 @@ rc=$? deactivate -# ******* -# clean -# ******* -# Clean useless logs -clean_results_dir - exit $rc |