mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
CI: systests: workaround for parallel podman-stop flake
Just bump up a timeout when running parallel, because of high load. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -152,8 +152,13 @@ load helpers
|
|||||||
is "$output" "0" "Exit code of stopped container"
|
is "$output" "0" "Exit code of stopped container"
|
||||||
|
|
||||||
# The 'stop' command should return almost instantaneously
|
# 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 ))
|
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
|
run_podman rm $cid
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user