clean_results_dir is now useless [1]
[1] https://gerrit.opnfv.org/gerrit/#/c/26661/
Change-Id: I7ec02798696d4cbc4930bf2d8aa9cb35ce99b7aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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
-
# Either Workspace is set (CI)
if [ -z $WORKSPACE ]
then
deactivate
-# *******
-# clean
-# *******
-# Clean useless logs
-clean_results_dir
-
exit $rc