diff --git a/scripts/runAllScreenshotCombinations b/scripts/runAllScreenshotCombinations index 47e06765a2..d0c32dad6d 100755 --- a/scripts/runAllScreenshotCombinations +++ b/scripts/runAllScreenshotCombinations @@ -12,6 +12,7 @@ fi classMethod=$3 +resultCode=0 while read line do darkMode=$(echo "$line" | cut -d" " -f1) @@ -38,7 +39,9 @@ do -Pandroid.testInstrumentationRunnerArguments.DARKMODE="$darkMode" /dev/null \ && scripts/deleteOutdatedComments.sh "$1-$darkMode-$color" "Screenshot" "$DRONE_PULL_REQUEST" \ "$GIT_USERNAME" "$GIT_TOKEN" \ - || scripts/uploadReport.sh "$LOG_USERNAME" "$LOG_PASSWORD" "$DRONE_BUILD_NUMBER" \ + || resultCode=1 && scripts/uploadReport.sh "$LOG_USERNAME" "$LOG_PASSWORD" "$DRONE_BUILD_NUMBER" \ "$1-$darkMode-$color" "Screenshot" "$DRONE_PULL_REQUEST" "$GIT_USERNAME" "$GIT_TOKEN" fi done < scripts/screenshotCombinations + +exit $resultCode