Skip to content

Commit 6790005

Browse files
authored
bpo-43031: Set a timeout when running tests in PGO build (pythonGH-24339)
Pass --timeout=$(TESTTIMEOUT) option to the default profile task "./python -m test --pgo" command.
1 parent 5327f37 commit 6790005

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Pass ``--timeout=$(TESTTIMEOUT)`` option to the default profile task
2+
``./python -m test --pgo`` command.

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6532,7 +6532,7 @@ fi
65326532
$as_echo_n "checking PROFILE_TASK... " >&6; }
65336533
if test -z "$PROFILE_TASK"
65346534
then
6535-
PROFILE_TASK='-m test --pgo'
6535+
PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
65366536
fi
65376537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
65386538
$as_echo "$PROFILE_TASK" >&6; }

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ AC_ARG_VAR(PROFILE_TASK, Python args for PGO generation task)
13251325
AC_MSG_CHECKING(PROFILE_TASK)
13261326
if test -z "$PROFILE_TASK"
13271327
then
1328-
PROFILE_TASK='-m test --pgo'
1328+
PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)'
13291329
fi
13301330
AC_MSG_RESULT($PROFILE_TASK)
13311331

0 commit comments

Comments
 (0)