From 82f18a401cee8c6f4a2395c6185052c2fcd0ba16 Mon Sep 17 00:00:00 2001 From: Morgan Richomme Date: Fri, 4 Nov 2016 10:02:16 +0100 Subject: bug fix on log file creation for unit tests JIRA: FUNCTEST-326 Change-Id: Iae797d00c0bda07fce098f4a054dfc8f5bba069b Signed-off-by: Morgan Richomme --- run_unit_tests.sh | 13 +++++-------- 1 file 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 -- cgit 1.2.3-korg