Add git pull during test loop if tests fail
This commit is contained in:
@@ -26,7 +26,8 @@ while ($true) {
|
||||
Write-Host "Running tests..."
|
||||
$testExitCode = Run-Tests
|
||||
if ($testExitCode -ne 0) {
|
||||
Write-Host "Tests failed. Waiting $waitTime seconds before next attempt..."
|
||||
Write-Host "Tests failed. Attempting git pull and waiting $waitTime seconds before next attempt..."
|
||||
Git-Pull
|
||||
Start-Sleep -Seconds $waitTime
|
||||
$waitTime *= 2
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user