python: Honor '--cores=...' in tests.

* gnu/packages/python.scm (python-2.7)[arguments]: Add #:make-flags.
This commit is contained in:
Eric Bavier 2018-11-01 21:18:41 -05:00
parent 421ec86532
commit 5b01b6034a
No known key found for this signature in database
GPG Key ID: FD73CAC719D32566
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@
"--enable-unicode=ucs4" "--enable-unicode=ucs4"
(string-append "LDFLAGS=-Wl,-rpath=" (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out") "/lib")) (assoc-ref %outputs "out") "/lib"))
;; With no -j argument tests use all available cpus, so provide one.
#:make-flags
(list (format #f "EXTRATESTOPTS=-j~d" (parallel-job-count)))
#:modules ((ice-9 ftw) (ice-9 match) #:modules ((ice-9 ftw) (ice-9 match)
(guix build utils) (guix build gnu-build-system)) (guix build utils) (guix build gnu-build-system))