File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 91
91
working-directory : ${{ github.workspace }}/build
92
92
- name : Touch device
93
93
run : |
94
+ ${{ env.ANDROID_HOME }}/platform-tools/adb kill-server
95
+ ${{ env.ANDROID_HOME }}/platform-tools/adb start-server
94
96
${{ env.ANDROID_HOME }}/platform-tools/adb devices
95
97
${{ env.ANDROID_HOME }}/platform-tools/adb shell cat /proc/cpuinfo
98
+ - name : Start adb logging
99
+ run : |
100
+ rm -f android_logcat.log
101
+ ${{ env.ANDROID_HOME }}/platform-tools/adb logcat -c
102
+ nohup ${{ env.ANDROID_HOME }}/platform-tools/adb logcat 2>&1 | tee android_logcat.log &
96
103
- name : Test Java
97
104
timeout-minutes : 60
98
105
id : java-test
@@ -101,10 +108,15 @@ jobs:
101
108
${{ env.ANDROID_HOME }}/platform-tools/adb uninstall org.opencv.tests || 0
102
109
./gradlew -i tests_module:connectedAndroidTest
103
110
working-directory : ${{ github.workspace }}/build/android_test
111
+ - name : Stop adb logging
112
+ run : ${{ env.ANDROID_HOME }}/platform-tools/adb kill-server
113
+ if : ${{ always() }}
104
114
- name : Save Unit Test Results
105
115
timeout-minutes : 5
106
116
if : ${{ always() }}
107
117
uses : actions/upload-artifact@v4
108
118
with :
109
119
name : android-junit-html
110
- path : ${{ github.workspace }}/build/android_test/tests_module/build/reports/androidTests/connected/
120
+ path : |
121
+ ${{ github.workspace }}/build/android_test/tests_module/build/reports/androidTests/connected/
122
+ ${{ github.workspace }}/android_logcat.log
You can’t perform that action at this time.
0 commit comments