Fix screenshot test on jdk17
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
6bbd629574
commit
2aecc3b92f
2
.github/workflows/screenShotTest.yml
vendored
2
.github/workflows/screenShotTest.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
sdcard-path-or-size: 100M
|
sdcard-path-or-size: 100M
|
||||||
target: google_apis
|
target: google_apis
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
|
||||||
script: ./gradlew uninstallAll gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
|
script: ./gradlew uninstallAll gplayDebugExecuteScreenshotTests -Dorg.gradle.jvmargs="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.nio.channels=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED" -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
|
||||||
- name: upload failing results
|
- name: upload failing results
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
env:
|
env:
|
||||||
|
@ -74,6 +74,7 @@ if [[ $4 = "all" ]]; then
|
|||||||
scripts/runAllScreenshotCombinations "noCI" "$1" "-Pandroid.testInstrumentationRunnerArguments.class=$class$method"
|
scripts/runAllScreenshotCombinations "noCI" "$1" "-Pandroid.testInstrumentationRunnerArguments.class=$class$method"
|
||||||
else
|
else
|
||||||
./gradlew --offline gplayDebugExecuteScreenshotTests $record \
|
./gradlew --offline gplayDebugExecuteScreenshotTests $record \
|
||||||
|
-Dorg.gradle.jvmargs="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.nio.channels=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED" \
|
||||||
-Pscreenshot=true \
|
-Pscreenshot=true \
|
||||||
-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest \
|
-Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest \
|
||||||
-Pandroid.testInstrumentationRunnerArguments.class=$class$method \
|
-Pandroid.testInstrumentationRunnerArguments.class=$class$method \
|
||||||
|
@ -28,7 +28,10 @@ scripts/wait_for_server.sh "server"
|
|||||||
adb logcat -c
|
adb logcat -c
|
||||||
adb logcat > logcat.txt &
|
adb logcat > logcat.txt &
|
||||||
LOGCAT_PID=$!
|
LOGCAT_PID=$!
|
||||||
./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest
|
./gradlew createGplayDebugCoverageReport \
|
||||||
|
-Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest \
|
||||||
|
-Dorg.gradle.jvmargs="--add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.nio.channels=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED"
|
||||||
|
|
||||||
stat=$?
|
stat=$?
|
||||||
# stop saving logcat
|
# stop saving logcat
|
||||||
kill $LOGCAT_PID
|
kill $LOGCAT_PID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user