From 3e4f69fa9e1d04c90240b518108c9be75777e17a Mon Sep 17 00:00:00 2001 From: Sokuhatiku Date: Sun, 7 Jan 2024 01:51:51 +0900 Subject: [PATCH] Fix unity editor path --- dist/platforms/windows/run_tests.ps1 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dist/platforms/windows/run_tests.ps1 b/dist/platforms/windows/run_tests.ps1 index 5042f9b..8fb5a53 100644 --- a/dist/platforms/windows/run_tests.ps1 +++ b/dist/platforms/windows/run_tests.ps1 @@ -106,8 +106,20 @@ foreach ( $platform in ${env:TEST_PLATFORMS}.Split(";") ) } } - $TEST_OUTPUT = Start-Process -NoNewWindow -Wait -PassThru "C:\Program Files\Unity\Hub\Editor\${env:UNITY_VERSION}\editor\Unity.exe" -ArgumentList "-batchmode -logFile $FULL_ARTIFACTS_PATH\$platform.log -projectPath $UNITY_PROJECT_PATH -coverageResultsPath $FULL_COVERAGE_RESULTS_PATH $runTests -enableCodeCoverage -debugCodeOptimization -coverageOptions ${env:COVERAGE_OPTIONS} ${env:CUSTOM_PARAMETERS}" - + $TEST_OUTPUT = Start-Process -FilePath "$Env:UNITY_PATH/Editor/Unity.exe" ` + -NoNewWindow ` + -Wait ` + -PassThru ` + -ArgumentList "-batchmode ` + -logFile $FULL_ARTIFACTS_PATH\$platform.log ` + -projectPath $UNITY_PROJECT_PATH ` + -coverageResultsPath $FULL_COVERAGE_RESULTS_PATH ` + $runTests ` + -enableCodeCoverage ` + -debugCodeOptimization ` + -coverageOptions ${env:COVERAGE_OPTIONS} ` + ${env:CUSTOM_PARAMETERS}" + # Catch exit code $TEST_EXIT_CODE = $TEST_OUTPUT.ExitCode