diff --git a/dist/platforms/ubuntu/run_tests.sh b/dist/platforms/ubuntu/run_tests.sh index 621966a..e80e13c 100755 --- a/dist/platforms/ubuntu/run_tests.sh +++ b/dist/platforms/ubuntu/run_tests.sh @@ -274,4 +274,10 @@ fi # Add read permissions for everyone to all artifacts chmod -R a+r "$UNITY_PROJECT_PATH" chmod -R a+r "$FULL_ARTIFACTS_PATH" -chmod -R a+r "$FULL_COVERAGE_RESULTS_PATH" + +# Check if coverage results directory exists +if [ -d "$FULL_COVERAGE_RESULTS_PATH" ]; then + chmod -R a+r "$FULL_COVERAGE_RESULTS_PATH" +else + echo "Coverage results directory does not exist. If you are expecting coverage results, please make sure the Code Coverage package is installed in your unity project and that it is set up correctly." +fi \ No newline at end of file