[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/19: build: julia-build-system: Fix corner-case for parallel tests.
From: |
guix-commits |
Subject: |
04/19: build: julia-build-system: Fix corner-case for parallel tests. |
Date: |
Thu, 24 Feb 2022 05:23:43 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 1f6ae9a8e02c457ee499e61f78c8a282ab9d4971
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Wed Feb 23 14:47:07 2022 +0100
build: julia-build-system: Fix corner-case for parallel tests.
* guix/build/julia-build-system.scm (check): Do not run parallel tests when
'--cores=1'.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
guix/build/julia-build-system.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/guix/build/julia-build-system.scm
b/guix/build/julia-build-system.scm
index c5ad65d029..b0dac154e9 100644
--- a/guix/build/julia-build-system.scm
+++ b/guix/build/julia-build-system.scm
@@ -112,9 +112,9 @@ Project.toml)."
(job-count (if parallel-tests?
(parallel-job-count)
1))
- ;; The --proc argument of Julia *adds* extra processors rather than
- ;; specify the exact count to use, so zero must be specified to
- ;; disable parallel processing...
+ ;; The --procs argument of Julia *adds* extra processors rather
+ ;; than specify the exact count to use, so zero must be specified
+ ;; to disable parallel processing...
(additional-procs (max 0 (1- job-count))))
;; With a patch, SOURCE_DATE_EPOCH is honored
(setenv "SOURCE_DATE_EPOCH" "1")
@@ -127,7 +127,7 @@ Project.toml)."
(setenv "HOME" "/tmp")
(apply invoke "julia"
`("--depwarn=yes"
- ,@(if parallel-tests?
+ ,@(if (and parallel-tests? (< 0 additional-procs))
;; XXX: ... but '--procs' doesn't accept 0 as a valid
;; value, so just omit the argument entirely.
(list (string-append "--procs="
- 02/19: build: julia: Add 'julia-package-dependencies' as keyword., (continued)
- 02/19: build: julia: Add 'julia-package-dependencies' as keyword., guix-commits, 2022/02/24
- 10/19: gnu: julia-http: Delete trailing #t., guix-commits, 2022/02/24
- 16/19: gnu: julia-pycall: Delete trailing #t., guix-commits, 2022/02/24
- 01/19: gnu: julia-xyz: Adjust style using G-expressions., guix-commits, 2022/02/24
- 05/19: gnu: julia-codeczlib: Remove unneeded phase., guix-commits, 2022/02/24
- 13/19: gnu: julia-matrixfactorizations: Delete trailing #t., guix-commits, 2022/02/24
- 14/19: gnu: julia-mbedtls: Delete trailing #t., guix-commits, 2022/02/24
- 15/19: gnu: julia-prettytables: Delete trailing #t., guix-commits, 2022/02/24
- 17/19: gnu: julia-quadmath: Delete trailing #t., guix-commits, 2022/02/24
- 03/19: gnu: julia-media: Use 'julia-package-dependencies'., guix-commits, 2022/02/24
- 04/19: build: julia-build-system: Fix corner-case for parallel tests.,
guix-commits <=
- 09/19: gnu: julia-fixedpointnumbers: Delete trailing #t., guix-commits, 2022/02/24
- 11/19: gnu: julia-imagemagick: Delete trailing #t., guix-commits, 2022/02/24
- 12/19: gnu: julia-infinity: Delete trailing #t., guix-commits, 2022/02/24
- 18/19: gnu: julia-stackviews: Delete trailing #t., guix-commits, 2022/02/24
- 19/19: gnu: julia-uris: Delete trailing #t., guix-commits, 2022/02/24
- 07/19: gnu: julia-datavalues: Delete trailing #t., guix-commits, 2022/02/24
- 08/19: gnu: julia-finitediff: Delete trailing #t., guix-commits, 2022/02/24
- 06/19: gnu: julia-dataframes: Delete trailing #t., guix-commits, 2022/02/24