summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-11-04 10:02:16 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2016-11-04 10:02:16 +0100
commit82f18a401cee8c6f4a2395c6185052c2fcd0ba16 (patch)
tree13e3280f9212c09a2323e6cd56ab5e72354f3a81
parentb4b14bd13f97c495287ae67334179bf79ce047e9 (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>
-rwxr-xr-xrun_unit_tests.sh13
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