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 0000000..6e8377f
--- /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 37ee369..39fb15f 100755
--- a/configure
+++ b/configure
@@ -6532,7 +6532,7 @@
$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 99077e9..1f5a008 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1325,7 +1325,7 @@
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)