aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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