Now exit with a failure if there are new screenshots

Change-Id: I441577bf92bab3e5a3606b87da30b5d8c8674ab4
ja/edge-to-edge-dropshots
Jose Alcérreca 3 months ago
parent 79aaf62f4e
commit 751a276bf6

@ -202,7 +202,7 @@ jobs:
profile: pixel_5
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# Run tests, if they fail, record screenshots and exit with a failure
script: ./gradlew connectedDemoDebugAndroidTest --daemon || echo "Recording new screenshots" ; ./gradlew connectedDemoDebugAndroidTest -Pdropshots.record --daemon --stacktrace
script: ./gradlew connectedDemoDebugAndroidTest --daemon || echo "Recording new screenshots" ; ./gradlew connectedDemoDebugAndroidTest -Pdropshots.record --daemon --stacktrace ; exit $?
- name: Prevent pushing new screenshots if this is a fork (instrumented)
id: checkfork_screenshots_instrumented

Loading…
Cancel
Save