Merge pull request #837 from yuslepukhin/rerun_concurrency_value

Failed tests must be rerun with concurrency 1
This commit is contained in:
Siying Dong 2015-11-17 17:43:38 -08:00
commit f831641204
2 changed files with 3 additions and 3 deletions

View File

@ -10,6 +10,6 @@ build:
verbosity: minimal
test:
test_script:
- ps: build_tools\run_ci_db_test.ps1 -EnableRerun -Run db_test -Exclude DBTest.Randomized -Concurrency 16
- ps: build_tools\run_ci_db_test.ps1 -EnableRerun -Run db_test -Exclude DBTest.Randomized,DBTest.FileCreationRandomFailure -Concurrency 18
- ps: build_tools\run_ci_db_test.ps1 -Run env_test -Concurrency 1

View File

@ -126,7 +126,7 @@ function Normalize-DbTests($HashTable) {
function MakeAndAdd([string]$token, $HashTable) {
$test_name = $token -replace '.exe$', ''
$log_name = -join ($test_name, ".log")
if(!$ExcludeTests.Contains($test)) {
if(!$ExcludeTests.Contains($test_name)) {
$HashTable.Add($test_name, $log_name)
} else {
Write-Warning "Test $test_name is excluded"
@ -299,7 +299,7 @@ if($Rerun.Count -gt 0) {
Write-Host "Rerunning " ($Rerun.Count) " tests sequentially"
$success = $true
$count = 0
RunJobs -TestToLog $Rerun -ConcurrencyVal $Concurrency -AddForRerun $false
RunJobs -TestToLog $Rerun -ConcurrencyVal 1 -AddForRerun $false
}
Get-Date