Add git pull during test loop if tests fail

This commit is contained in:
2024-08-20 18:01:43 -05:00
parent a2255eb14f
commit c6f2c39ef8
+2 -1
View File
@@ -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