Skip to content

Commit

Permalink
Retry instrumentation test on failure to reduce flaky failures.
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 350235151
  • Loading branch information
bcorso authored and Dagger Team committed Jan 5, 2021
1 parent 0929fec commit 5959306
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion util/run-local-emulator-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ readonly GRADLE_PROJECTS=(
)
for project in "${GRADLE_PROJECTS[@]}"; do
echo "Running gradle tests for $project"
./$project/gradlew -p $project connectedAndroidTest --no-daemon --stacktrace
{
./$project/gradlew -p $project connectedAndroidTest --no-daemon --stacktrace
} || {
# Try running once more. This test is flaky failure due to InstallException
# TODO(b/176111885): See if there's a better way to prevent this flake
./$project/gradlew -p $project connectedAndroidTest --no-daemon --stacktrace
}
done

# Run emulator tests in a project with configuration cache enabled
Expand Down

0 comments on commit 5959306

Please sign in to comment.