onnxruntime/tools/ci_build/github/azure-pipelines/templates/android-dump-logs-from-steps.yml
Edward Chen 2fa18ea77e
[React Native CI] Record more info to debug E2E test (#13329)
Record more info from the React Native CI E2E test. In particular, log the view hierarchy when exiting the test and dump logs from Android emulator to the build output.
2022-10-18 17:21:28 -07:00

22 lines
450 B
YAML

# dumps the Android logs from the given step(s)
parameters:
- name: steps
type: stepList
steps:
- task: CmdLine@2
inputs:
script: |
python3 tools/python/run_adb.py logcat --clear
displayName: "Clear Android logs"
condition: succeededOrFailed()
- ${{ parameters.steps }}
- task: CmdLine@2
inputs:
script: |
python3 tools/python/run_adb.py logcat -d
displayName: "Dump Android logs"
condition: succeededOrFailed()