python3.9: Add timeout regrtest

Even after disabling python3.9 specific test we are
seeing the build process getting stuck on the test run again.
On previous run all the test took less then 3 minute, this
change aim to set a timeout of 4 minutes to every test
run by regrtest.py.

Test Plan:
PASS: Build the package with build-pkgs -c -p python3.9 successfully

Partial-Bug: 2009722

Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Change-Id: Ibf286223e5c2cd6616f7cc1c98b6953808d774b1
This commit is contained in:
Dostoievski Batista 2023-04-05 09:28:25 -03:00
parent 2648b6fddc
commit 14affb5870
3 changed files with 25 additions and 28 deletions

View File

@ -1,27 +0,0 @@
From da2d00927912096fa53ab204c6b6332123288135 Mon Sep 17 00:00:00 2001
From: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Date: Mon, 3 Apr 2023 08:53:00 -0300
Subject: [PATCH] Disabling test that may cause hanging on building process
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
---
debian/rules | 3 +++
1 file changed, 3 insertions(+)
diff --git a/debian/rules b/debian/rules
index 1d632f2..68d71be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -313,6 +313,9 @@ PROFILE_EXCLUDES += \
PROFILE_EXCLUDES += \
test_cmd_line_script test_zipimport_support
+PROFILE_EXCLUDES += \
+ test_builtin test_openpty
+
# TODO: update profiled-build.diff to support --next
# --next=20
PROFILE_TASK = ../Lib/test/regrtest.py \
--
2.25.1

View File

@ -0,0 +1,24 @@
From b8d2158ba83561554bbc88bcdeb7de16eb776371 Mon Sep 17 00:00:00 2001
From: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
Date: Mon, 10 Apr 2023 16:31:49 -0300
Subject: [PATCH] Adding timeout for regrtest.py
Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 1d632f2..1bb7f39 100755
--- a/debian/rules
+++ b/debian/rules
@@ -316,7 +316,7 @@ PROFILE_EXCLUDES += \
# TODO: update profiled-build.diff to support --next
# --next=20
PROFILE_TASK = ../Lib/test/regrtest.py \
- -s \
+ -s --timeout 240 \
-j 1 -unone,decimal \
-x $(sort $(TEST_EXCLUDES) $(PROFILE_EXCLUDES))
--
2.25.1

View File

@ -1 +1 @@
0001-Disabling-specific-test.patch
0001-adding-timeout-regrtest.patch