mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-typer: Run tests conditionally.
* gnu/packages/python-xyz.scm (python-typer)[arguments]: Only run tests when TESTS? is #true.
This commit is contained in:
parent
3b1cf6ab5e
commit
9d0c5f18e7
1 changed files with 15 additions and 14 deletions
|
@ -20863,7 +20863,8 @@ based on the CPython 2.7 and 3.7 parsers.")
|
||||||
(("\"bash\"") (string-append "\"" (which "bash") "\""))
|
(("\"bash\"") (string-append "\"" (which "bash") "\""))
|
||||||
(("\"/bin/bash\"") (string-append "\"" (which "bash") "\"")))))
|
(("\"/bin/bash\"") (string-append "\"" (which "bash") "\"")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(setenv "HOME" "/tmp") ; some tests need it
|
(setenv "HOME" "/tmp") ; some tests need it
|
||||||
|
|
||||||
;; This is for completion tests
|
;; This is for completion tests
|
||||||
|
@ -20878,7 +20879,7 @@ based on the CPython 2.7 and 3.7 parsers.")
|
||||||
"-k"
|
"-k"
|
||||||
(string-append "not "
|
(string-append "not "
|
||||||
(string-join disabled-tests
|
(string-join disabled-tests
|
||||||
" and not ")))))))))
|
" and not "))))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-click" ,python-click)))
|
`(("python-click" ,python-click)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue