No idea what's going on

Change-Id: I238105104799ee4e4328d177ad4569e1e447f990
ben/dropshots
Jose Alcérreca 6 months ago
parent 8fbc98fbaf
commit 9a5e6119cb

@ -323,13 +323,13 @@ jobs:
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: | script: |
set +e ; set +e
if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests --daemon ; if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests --daemon
then then
echo "All screenshot tests passed" echo "All screenshot tests passed"
else else
echo "Verification failed. Recording new reference images" echo "Verification failed. Recording new reference images"
if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace ; if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace
then then
echo "New goldens recorded, no issues" echo "New goldens recorded, no issues"
echo "newgoldens=true" >> $GITHUB_OUTPUT echo "newgoldens=true" >> $GITHUB_OUTPUT

Loading…
Cancel
Save