mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-28 21:59:06 +08:00
fix: add check before performing chmod on the code coverage path (#262)
* fix: add check before performing chmod on the code coverage path, as it does not exist if the package is not installed * fix: generalise the dir not existing message more * fix: improve guide message --------- Co-authored-by: Quake <QuakeEye@users.noreply.GitHub.com>
This commit is contained in:
8
dist/platforms/ubuntu/run_tests.sh
vendored
8
dist/platforms/ubuntu/run_tests.sh
vendored
@@ -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
|
||||
Reference in New Issue
Block a user