Skip to content

Commit

Permalink
Stops retrying failed tests.
Browse files Browse the repository at this point in the history
  * We always have failures and this just seems to add more time to the presubmit checks and stresses quotas even more.
  • Loading branch information
amanda-tarafa committed Jul 23, 2020
1 parent 3860335 commit e51d5e4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions BuildTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,6 @@ function Run-TestScripts($TimeoutSeconds=300) {
Run-TestScriptsOnce $scripts $TimeoutSeconds 'Starting' $results
# Rename all the test logs to a name Sponge will find.
Get-ChildItem -Recurse TestResults.xml | Rename-Item -Force -NewName 01_sponge_log.xml
# Retry the failures once.
$failed = $results['Failed']
if ($failed) {
$results['Failed'] = @()
Run-TestScriptsOnce ($failed | Get-Item) $TimeoutSeconds `
'Retrying' $results
# Rename all the test logs to a name Sponge will find.
Get-ChildItem -Recurse TestResults.xml | Rename-Item -Force -NewName 02_sponge_log.xml
}

# Print a final summary.
Write-Output ("=" * 79)
Expand Down

0 comments on commit e51d5e4

Please sign in to comment.