Skip to content

Commit 84f6542

Browse files
authored
Show Unity log in realtime
1 parent 4eb8fb4 commit 84f6542

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

dist/platforms/ubuntu/run_tests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,20 +202,21 @@ for platform in ${TEST_PLATFORMS//;/ }; do
202202

203203
unity-editor \
204204
-batchmode \
205-
-logFile "$FULL_ARTIFACTS_PATH/$platform.log" \
205+
#-logFile "$FULL_ARTIFACTS_PATH/$platform.log" \
206+
-logFile /dev/stdout \
206207
-projectPath "$UNITY_PROJECT_PATH" \
207208
-coverageResultsPath "$FULL_COVERAGE_RESULTS_PATH" \
208209
$runTests \
209210
-enableCodeCoverage \
210211
-debugCodeOptimization \
211212
-coverageOptions "$COVERAGE_OPTIONS" \
212-
$CUSTOM_PARAMETERS
213+
$CUSTOM_PARAMETERS | tee "$FULL_ARTIFACTS_PATH/$platform.log"
213214

214215
# Catch exit code
215216
TEST_EXIT_CODE=$?
216217

217218
# Print unity log output
218-
cat "$FULL_ARTIFACTS_PATH/$platform.log"
219+
#cat "$FULL_ARTIFACTS_PATH/$platform.log"
219220

220221
if [[ $TEST_EXIT_CODE -eq 0 && "$platform" == "custom" ]]; then
221222
if grep -q "ALL_TESTS_SUCCESSFUL" "$FULL_ARTIFACTS_PATH/$platform.log" && ! grep -q "TEST_FAILURE" "$FULL_ARTIFACTS_PATH/$platform.log"; then

0 commit comments

Comments
 (0)