]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43031: Set a timeout when running tests in PGO build (GH-24339)
authorVictor Stinner <vstinner@python.org>
Wed, 27 Jan 2021 10:16:15 +0000 (11:16 +0100)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 10:16:15 +0000 (11:16 +0100)
Pass --timeout=$(TESTTIMEOUT) option to the default profile task
"./python -m test --pgo" command.

Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst b/Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst
new file mode 100644 (file)
index 0000000..6e8377f
--- /dev/null
@@ -0,0 +1,2 @@
+Pass ``--timeout=$(TESTTIMEOUT)`` option to the default profile task
+``./python -m test --pgo`` command.
index 37ee3691bb6b4b3c3eedd293be3feb7c6d6e4fc7..39fb15f5c7959d27c8a9577a4ecd344627075b97 100755 (executable)
--- a/configure
+++ b/configure
@@ -6532,7 +6532,7 @@ fi
 $as_echo_n "checking PROFILE_TASK... " >&6; }
 if test -z "$PROFILE_TASK"
 then
-       PROFILE_TASK='-m test --pgo'
+       PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
 $as_echo "$PROFILE_TASK" >&6; }
index 99077e9c3a923bceba7d51b2cfb54a13889e6c9f..1f5a008388a1e3f5b02fd181ecc40863ef6a0636 100644 (file)
@@ -1325,7 +1325,7 @@ AC_ARG_VAR(PROFILE_TASK, Python args for PGO generation task)
 AC_MSG_CHECKING(PROFILE_TASK)
 if test -z "$PROFILE_TASK"
 then
-       PROFILE_TASK='-m test --pgo'
+       PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
 fi
 AC_MSG_RESULT($PROFILE_TASK)