mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1135399 - Timeout shell builds, r=catlee
This commit is contained in:
parent
2b50afd362
commit
5ad1c2ac99
@ -12,6 +12,7 @@ function usage() {
|
||||
|
||||
clean=""
|
||||
platform=""
|
||||
TIMEOUT=7200
|
||||
while [ $# -gt 1 ]; do
|
||||
case "$1" in
|
||||
--clobber)
|
||||
@ -23,6 +24,11 @@ while [ $# -gt 1 ]; do
|
||||
platform="$1"
|
||||
shift
|
||||
;;
|
||||
--timeout)
|
||||
shift
|
||||
TIMEOUT="$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Invalid arguments" >&2
|
||||
usage
|
||||
@ -130,6 +136,12 @@ fi
|
||||
|
||||
RUN_JSTESTS=true
|
||||
|
||||
PARENT=$$
|
||||
sh -c "sleep $TIMEOUT; kill $PARENT" <&- >&- 2>&- &
|
||||
KILLER=$!
|
||||
disown %1
|
||||
trap "kill $KILLER" EXIT
|
||||
|
||||
if [[ "$VARIANT" = "rootanalysis" ]]; then
|
||||
export JS_GC_ZEAL=7
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user