Merge pull request #24461 from edsantiago/stop-trap-timeout

CI: systests: workaround for parallel podman-stop flake
This commit is contained in:
openshift-merge-bot[bot] 2024-11-04 18:56:59 +00:00 committed by GitHub
commit df41725d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -152,8 +152,13 @@ load helpers
is "$output" "0" "Exit code of stopped container"
# The 'stop' command should return almost instantaneously
local howlong=2
# ...unless running parallel, due to high system load.
if [[ -n "$PARALLEL_JOBSLOT" ]]; then
howlong=4
fi
delta_t=$(( $t1 - $t0 ))
assert $delta_t -le 2 "podman stop: took too long"
assert $delta_t -le $howlong "podman stop: took too long"
run_podman rm $cid
done