From c6f2c39ef86e889a2b85104eedef9ceea1548206 Mon Sep 17 00:00:00 2001 From: bucolucas Date: Tue, 20 Aug 2024 18:01:43 -0500 Subject: [PATCH] Add git pull during test loop if tests fail --- run_python_with_restart.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_python_with_restart.ps1 b/run_python_with_restart.ps1 index e6410ea..bc88915 100644 --- a/run_python_with_restart.ps1 +++ b/run_python_with_restart.ps1 @@ -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