Skip to content

Commit 803d596

Browse files
authored
Android tests (#96)
* Print Android emulator/AVD output on failure * Test Android test runner script again One more try before throwing in the towel * [debug] list AVDs available on GH * Stop on Android test failure * Clean up Android test debugging
1 parent c05506f commit 803d596

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,5 @@ jobs:
100100
#- name: run Android tests (macOS)
101101
# if: "success() && matrix.env.OS == 'macOS'"
102102
# run: |
103-
# pushd Samples/Beyond.NET.Sample.Native
104-
# ./publish_android_arm64
105-
# popd
106-
#
107103
# cd Samples/Beyond.NET.Sample.Android
108104
# ./test-on-emulator.ps1

Samples/Beyond.NET.Sample.Android/test-on-emulator.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ try {
7272
# shut emulator down gracefully
7373
& $adb -s "emulator-${port}" emu kill
7474
}
75+
catch {
76+
# if there was a failure, it's possible that the `emulator` running in the background
77+
# encountered an issue -- print its output before terminating
78+
Receive-Job $job -Keep
79+
80+
throw "See emulator output above"
81+
}
7582
finally {
7683
# force kill emulator process
7784
Remove-Job $job -Force

0 commit comments

Comments
 (0)