From 44d5fbedc1864e7db8f2664d97c042a96b15db12 Mon Sep 17 00:00:00 2001 From: Katya Sokolova Date: Tue, 21 Sep 2021 21:28:07 +0200 Subject: [PATCH] Copy emulator log in case of 85 error (#7922) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * copy emulator log in case of 85 error * Apply suggestions from code review Co-authored-by: Přemek Vysoký Co-authored-by: Přemek Vysoký --- .../Sdk/tools/xharness-runner/xharness-helix-job.android.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/xharness-helix-job.android.sh b/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/xharness-helix-job.android.sh index 036b4c8deb9..81962d5356a 100644 --- a/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/xharness-helix-job.android.sh +++ b/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/xharness-helix-job.android.sh @@ -86,6 +86,8 @@ case "$exit_code" in # The only solution is to reboot the machine, so we request a work item retry + agent reboot when this happens echo 'Encountered ADB_DEVICE_ENUMERATION_FAILURE. This is typically not a failure of the work item. We will run it again and reboot this computer to help its devices' echo 'If this occurs repeatedly, please check for architectural mismatch, e.g. sending arm64_v8a APKs to an x86_64 / x86 only queue.' + # Copy emulator log + cp /tmp/*-logcat.log "$output_directory" retry=true reboot=true ;;