mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: python-cram: Fix build.
* gnu/packages/python-xyz.scm (python-cram)[arguments]: Do not require 100% test coverage. While here, do not move the 'check' phase, as PYTHON-BUILD-SYSTEM now runs tests after install by default.
This commit is contained in:
parent
fa0d5854ef
commit
ff1e80d791
1 changed files with 8 additions and 4 deletions
|
@ -6622,12 +6622,16 @@ (define-public python-cram
|
|||
;; lines, but the test expects a single line...
|
||||
(("env\\['COLUMNS'\\] = '80'")
|
||||
"env['COLUMNS'] = '160'"))
|
||||
|
||||
(substitute* "Makefile"
|
||||
;; Recent versions of python-coverage have caused the test
|
||||
;; coverage to decrease (as of version 0.7). Allow that.
|
||||
(("--fail-under=100")
|
||||
"--fail-under=90"))
|
||||
|
||||
#t))
|
||||
(delete 'check)
|
||||
(add-after 'install 'check
|
||||
(replace 'check
|
||||
;; The test phase uses the built library and executable.
|
||||
;; It's easier to run it after install since the build
|
||||
;; directory contains version-specific PATH.
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(setenv "PATH" (string-append (getenv "PATH") ":"
|
||||
|
|
Loading…
Reference in a new issue