Skip to content

Commit

Permalink
Retry
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Aug 21, 2024
1 parent 63d5db5 commit 9baa6d5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test-xharness-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@ jobs:
/bl:./artifacts/logs/msbuild-publish.binlog
- name: Run Tests
run: |
dotnet xharness android test \
--timeout="00:05:00" \
--launch-timeout=00:10:00 \
--package-name com.companyname.DeviceTestingKitApp.DeviceTests \
--instrumentation devicerunners.xharness.maui.XHarnessInstrumentation \
--app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/publish/com.companyname.devicetestingkitapp.devicetests-Signed.apk \
--output-directory artifacts
for i in $(seq 1 3)
do
dotnet xharness android test \
--timeout="00:05:00" \
--launch-timeout=00:10:00 \
--package-name com.companyname.DeviceTestingKitApp.DeviceTests \
--instrumentation devicerunners.xharness.maui.XHarnessInstrumentation \
--app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/publish/com.companyname.devicetestingkitapp.devicetests-Signed.apk \
--output-directory artifacts \
&& code=0 && break || code=$? && sleep 15
done
exit $code
- name: Shutdown the Emulator
run: dotnet xharness android adb -- emu kill
- name: Upload Artifacts
Expand Down

0 comments on commit 9baa6d5

Please sign in to comment.