From 3fd1162bd13880a20955b37b283da277a090eee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Thu, 23 May 2024 14:03:19 +0000 Subject: [PATCH] Trying harder to exit with a failure Change-Id: I88b9da75b741ae90909d997d7f49c50ee1945533 --- .github/workflows/Build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 8df65466f..ad579dc33 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -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 ; 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) id: checkfork_screenshots_instrumented