diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-04 10:02:16 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-04 10:02:16 +0100 |
commit | 82f18a401cee8c6f4a2395c6185052c2fcd0ba16 (patch) | |
tree | 13e3280f9212c09a2323e6cd56ab5e72354f3a81 /run_unit_tests.sh | |
parent | b4b14bd13f97c495287ae67334179bf79ce047e9 (diff) |
bug fix on log file creation for unit tests
JIRA: FUNCTEST-326
Change-Id: Iae797d00c0bda07fce098f4a054dfc8f5bba069b
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'run_unit_tests.sh')
-rwxr-xr-x | run_unit_tests.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/run_unit_tests.sh b/run_unit_tests.sh index 96b4a5807..bbe95cc8c 100755 --- a/run_unit_tests.sh +++ b/run_unit_tests.sh @@ -18,14 +18,11 @@ fi # Create log dir if needed # log shall be disabled during unit tests # fix to be done in Logger -if [ ! -d "/home/opnfv/functest/results" ] -then - 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 -fi +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) # then useless log files must belong to jenkins:jenkins |