Trying harder to exit with a failure

Change-Id: I88b9da75b741ae90909d997d7f49c50ee1945533
ja/edge-to-edge-dropshots
Jose Alcérreca 6 months ago
parent 751a276bf6
commit 82f79d386a

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

Loading…
Cancel
Save