[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: python2: Fix test flags.
From: |
guix-commits |
Subject: |
01/01: gnu: python2: Fix test flags. |
Date: |
Tue, 22 Jan 2019 23:03:49 -0500 (EST) |
bavier pushed a commit to branch core-updates
in repository guix.
commit 32922190977f701694880254a71feb2752222f94
Author: Eric Bavier <address@hidden>
Date: Tue Jan 22 22:00:50 2019 -0600
gnu: python2: Fix test flags.
Reverts a9883939977f5fb0bd62d1dccb1ab0a772a4b720 in favor of a cleaner
approach.
* gnu/packages/python.scm (python-2.7)[arguments]: 'EXTRATESTOPTS' ->
'TESTOPTS'. This overrides the default '-l' argument for memory leak checks
which is not compatible with the -j for parallelism.
---
gnu/packages/python.scm | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e8706ff..4dfc95d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès
<address@hidden>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <address@hidden>
;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
-;;; Copyright © 2014, 2017 Eric Bavier <address@hidden>
+;;; Copyright © 2014, 2017, 2019 Eric Bavier <address@hidden>
;;; Copyright © 2014, 2015 Federico Beffa <address@hidden>
;;; Copyright © 2015 Omar Radwan <address@hidden>
;;; Copyright © 2015 Pierre-Antoine Rault <address@hidden>
@@ -194,20 +194,12 @@
(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)))
+ (list (format #f "TESTOPTS=-j~d" (parallel-job-count)))
#:modules ((ice-9 ftw) (ice-9 match)
(guix build utils) (guix build gnu-build-system))
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'remove-findleaks-from-testopts
- (lambda _
- (substitute* "Makefile.pre.in"
- ;; -l which is short for --findleaks isn't compatible with the
- ;; -j flag added through the #:make-flags, therefore remove
- ;; it. This only affects python-2.7.
- (("TESTOPTS= -l ") "TESTOPTS= "))
- #t))
(add-before
'configure 'patch-lib-shells
(lambda _