5d: re-raise the interrupt so a signalled gate does not exit 0
CI / gate (push) Successful in 5m19s
CI / publish (push) Has been skipped

This commit is contained in:
2026-09-04 11:13:42 +02:00
parent 9e688f4b00
commit 4d13583d6e
+3 -1
View File
@@ -14,7 +14,9 @@ with_firefox() {
local container in_image_network status=0 local container in_image_network status=0
container=$(docker run -d --rm "$firefox_image") container=$(docker run -d --rm "$firefox_image")
# The id is baked in: the trap fires after this function's locals are gone. # The id is baked in: the trap fires after this function's locals are gone.
trap "docker rm -f $container >/dev/null 2>&1" EXIT INT TERM trap "docker rm -f $container >/dev/null 2>&1" EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
in_image_network="container:$container" in_image_network="container:$container"
"$@" || status=$? "$@" || status=$?
return $status return $status