From: Victor Stinner Date: Wed, 27 Jan 2021 10:16:15 +0000 (+0100) Subject: bpo-43031: Set a timeout when running tests in PGO build (GH-24339) X-Git-Tag: v3.10.0a5~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6790005a9a30ae3eca69d1957fb072171643a366;p=thirdparty%2FPython%2Fcpython.git bpo-43031: Set a timeout when running tests in PGO build (GH-24339) Pass --timeout=$(TESTTIMEOUT) option to the default profile task "./python -m test --pgo" command. --- 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 index 000000000000..6e8377fb3061 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst @@ -0,0 +1,2 @@ +Pass ``--timeout=$(TESTTIMEOUT)`` option to the default profile task +``./python -m test --pgo`` command. diff --git a/configure b/configure index 37ee3691bb6b..39fb15f5c795 100755 --- 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; } diff --git a/configure.ac b/configure.ac index 99077e9c3a92..1f5a008388a1 100644 --- a/configure.ac +++ b/configure.ac @@ -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)