mirror of https://github.com/astral-sh/uv
Run in a loop
This commit is contained in:
parent
9c104f7e6e
commit
dcf79c3af6
|
|
@ -337,16 +337,21 @@ jobs:
|
||||||
}
|
}
|
||||||
Write-Host "Initial dump count: $($initialDumps.Count)"
|
Write-Host "Initial dump count: $($initialDumps.Count)"
|
||||||
|
|
||||||
# Execute cargo test
|
# Execute cargo test in loop
|
||||||
|
$iteration = 1
|
||||||
|
while ($true) {
|
||||||
try {
|
try {
|
||||||
Write-Host "Executing: cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow"
|
Write-Host "Iteration $iteration - Executing: cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow"
|
||||||
$exitCode = 0
|
$exitCode = 0
|
||||||
& cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
|
& cargo nextest run --no-default-features --features python,pypi,python-managed --workspace --status-level skip --failure-output immediate-final --no-fail-fast -j 20 --final-status-level slow
|
||||||
$exitCode = $LASTEXITCODE
|
$exitCode = $LASTEXITCODE
|
||||||
Write-Host "Cargo test completed with exit code: $exitCode"
|
Write-Host "Iteration $iteration - Cargo test completed with exit code: $exitCode"
|
||||||
|
$iteration++
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host "Exception during cargo test: $_"
|
Write-Host "Iteration $iteration - Exception during cargo test: $_"
|
||||||
$exitCode = 1
|
$exitCode = 1
|
||||||
|
$iteration++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check for new crash dumps
|
# Check for new crash dumps
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue