summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-03-03 10:43:36 +0200
committerEfraim Flashner <efraim@flashner.co.il>2025-03-03 10:43:36 +0200
commit25d99dd80a913d34cd447d57b90dabf12808af00 (patch)
treeeb6f7585d207ba32fb2ba9151476620c35fa423c
parent169f88d90fea05918e13d8c1f8b7d25c47a01a43 (diff)
gnu: python-pytest-mypy: Extend the test timeout on riscv64-linux.
* gnu/packages/check.scm (python-pytest-mypy)[arguments]: When building for riscv64-linux add a phase to extend the test timeout. Change-Id: I9e4ba00bf9b8feb7e52d0d0914c18c2308662e79
-rw-r--r--gnu/packages/check.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index b54794a766..4994a10f11 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3035,7 +3035,16 @@ by the test.")
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags #~(list "--numprocesses" "auto")))
+ #:test-flags #~(list "--numprocesses" "auto")
+ #:phases
+ (if (target-riscv64?)
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'extend-test-timeout
+ (lambda _
+ ;; Some architectures need an even longer timeout.
+ (substitute* "tests/test_pytest_mypy.py"
+ (("60\\.0") "180.0")))))
+ #~%standard-phases)))
(native-inputs
(list python-pexpect
python-pytest-xdist