From 971e8df18a534878d196c75aaca975ccb2314474 Mon Sep 17 00:00:00 2001 From: Alex Evgrashin Date: Thu, 13 Feb 2020 22:53:30 +0300 Subject: [PATCH] Editor log now saves to artifacts folder --- action/steps/run_tests.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action/steps/run_tests.sh b/action/steps/run_tests.sh index f9e763e..46b1af2 100644 --- a/action/steps/run_tests.sh +++ b/action/steps/run_tests.sh @@ -77,13 +77,16 @@ if [ $EDIT_MODE = true ]; then xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ /opt/Unity/Editor/Unity \ -batchmode \ - -logfile /dev/stdout \ + -logFile "$FULL_ARTIFACTS_PATH/editmode.log" \ -projectPath "$UNITY_PROJECT_PATH" \ -runTests \ -testPlatform editmode \ -testResults "$FULL_ARTIFACTS_PATH/editmode-results.xml" \ $CUSTOM_PARAMETERS + # Print unity log output + cat "$FULL_ARTIFACTS_PATH/editmode.log" + # Catch exit code EDIT_MODE_EXIT_CODE=$? @@ -112,13 +115,16 @@ if [ $PLAY_MODE = true ]; then xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ /opt/Unity/Editor/Unity \ -batchmode \ - -logfile /dev/stdout \ + -logFile "$FULL_ARTIFACTS_PATH/playmode.log" \ -projectPath "$UNITY_PROJECT_PATH" \ -runTests \ -testPlatform playmode \ -testResults "$FULL_ARTIFACTS_PATH/playmode-results.xml" \ $CUSTOM_PARAMETERS + # Print unity log output + cat "$FULL_ARTIFACTS_PATH/playmode.log" + # Catch exit code PLAY_MODE_EXIT_CODE=$?