[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: mariadb: Honor parallel-tests?.
From: |
guix-commits |
Subject: |
01/02: gnu: mariadb: Honor parallel-tests?. |
Date: |
Wed, 29 Sep 2021 04:04:08 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit b1ef2deb66f4794c96557801eca3808a61f1f218
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Sep 29 10:04:45 2021 +0300
gnu: mariadb: Honor parallel-tests?.
* gnu/packages/databases.scm (mariadb)[arguments]: In custom 'check
phase honor #:parallel-tests? flag.
---
gnu/packages/databases.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index bd6d458..93336ae 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -900,14 +900,16 @@ Language.")
(for-each disable-plugin disabled-plugins)
#t)))
(replace 'check
- (lambda* (#:key (tests? #t) #:allow-other-keys)
+ (lambda* (#:key (tests? #t) parallel-tests? #:allow-other-keys)
(if tests?
(with-directory-excursion "mysql-test"
(invoke "./mtr" "--verbose"
"--retry=3"
"--testcase-timeout=40"
"--suite-timeout=600"
- "--parallel" (number->string (parallel-job-count))
+ "--parallel" (number->string (if parallel-tests?
+ (parallel-job-count)
+ 1))
;; Skip the replication tests: they are very I/O
;; intensive and frequently causes indeterministic
;; failures even on powerful hardware.