From 6790005a9a30ae3eca69d1957fb072171643a366 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 27 Jan 2021 11:16:15 +0100 Subject: [PATCH] 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. --- Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst | 2 ++ configure | 2 +- configure.ac | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2021-01-26-14-48-40.bpo-43031.44nK9U.rst 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 00000000000..6e8377fb306 --- /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 37ee3691bb6..39fb15f5c79 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 99077e9c3a9..1f5a008388a 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)