Add git pull during test loop if tests fail
This commit is contained in:
@@ -26,7 +26,8 @@ while ($true) {
|
|||||||
Write-Host "Running tests..."
|
Write-Host "Running tests..."
|
||||||
$testExitCode = Run-Tests
|
$testExitCode = Run-Tests
|
||||||
if ($testExitCode -ne 0) {
|
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
|
Start-Sleep -Seconds $waitTime
|
||||||
$waitTime *= 2
|
$waitTime *= 2
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user