mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
### Description fix typo ### Motivation and Context [RN pipeline failing](https://dev.azure.com/onnxruntime/onnxruntime/_build?definitionId=188&_a=summary) since #21578 with this error: 
33 lines
817 B
YAML
33 lines
817 B
YAML
# dumps the Android logs from the given step(s)
|
|
|
|
parameters:
|
|
- name: steps
|
|
type: stepList
|
|
|
|
steps:
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
if [ -f $(Build.BinariesDirectory)/emulator.pid ]; then
|
|
echo "Emulator is running."
|
|
echo "##vso[task.setvariable variable=isEmulatorRunning]True"
|
|
else
|
|
echo "Emulator is not running."
|
|
fi
|
|
displayName: "Determine if emulator is running"
|
|
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
python3 tools/python/run_adb.py logcat --clear
|
|
displayName: "Clear Android logs"
|
|
condition: eq(variables['isEmulatorRunning'], 'True')
|
|
|
|
- ${{ parameters.steps }}
|
|
|
|
- task: CmdLine@2
|
|
inputs:
|
|
script: |
|
|
python3 tools/python/run_adb.py logcat -d
|
|
displayName: "Dump Android logs"
|
|
condition: eq(variables['isEmulatorRunning'], 'True')
|