aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-09-16 08:08:02 +0200
committerMarius Bakke <marius@gnu.org>2022-09-16 18:42:20 +0200
commit937215d562f65cd24c0113ebc3663e93fec0f595 (patch)
treeae2a752112a90677767b84e7989ea94ccdad75b1 /gnu/packages
parent7d4a1b8c0cedd4d289946dc8c744067d724ce8fd (diff)
downloadguix-937215d562f65cd24c0113ebc3663e93fec0f595.tar.gz
guix-937215d562f65cd24c0113ebc3663e93fec0f595.zip
gnu: python-afdko: Run tests in parallel.
* gnu/packages/fontutils.scm (python-afdko)[arguments]: Adjust check phase for parallel execution. [native-inputs]: Add PYTHON-PYTEST-XDIST.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/fontutils.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm
index 257c7d4e37..6f0cc4f586 100644
--- a/gnu/packages/fontutils.scm
+++ b/gnu/packages/fontutils.scm
@@ -198,7 +198,8 @@ them as it goes.")
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
- (invoke "pytest" "-vv"))))
+ (invoke "pytest" "-vv" "--dist" "loadfile" "-n"
+ (number->string (parallel-job-count))))))
(add-after 'check 'wrap
(assoc-ref %standard-phases 'wrap))
(add-before 'wrap 'wrap-PATH
@@ -217,6 +218,7 @@ them as it goes.")
openjdk ;required by antlr4
ninja
python-pytest
+ python-pytest-xdist
python-scikit-build
python-setuptools-scm
python-wheel))