mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: check: Return #t from all phases.
* gnu/packages/check.scm (cmdtest, python-pytest-cov, python-fixtures) (python-pytest-localserver, python-pytest-flakes) (python2-coverage-test-runner, python-pylint, python-behave-web-api): Return #t from all phases, and use invoke where appropriate.
This commit is contained in:
parent
ee527187a6
commit
29594404a1
1 changed files with 14 additions and 13 deletions
|
@ -250,7 +250,7 @@ (define-public cmdtest
|
|||
;; the build environment. Hence assuming-failure test fails.
|
||||
(delete-file "yarn.tests/assuming-failure.script")
|
||||
(delete-file "yarn.tests/assuming-failure.stdout")
|
||||
(zero? (system* "python" "setup.py" "check")))))))
|
||||
(invoke "python" "setup.py" "check"))))))
|
||||
(native-inputs
|
||||
`(("python2-coverage-test-runner" ,python2-coverage-test-runner)))
|
||||
(propagated-inputs
|
||||
|
@ -715,8 +715,8 @@ (define-public python-pytest-cov
|
|||
;; options taken from tox.ini
|
||||
;; TODO: make "--restructuredtext" tests pass. They currently fail
|
||||
;; with "Duplicate implicit target name"
|
||||
(zero? (system* "python" "./setup.py" "check"
|
||||
"--strict" "--metadata")))))))
|
||||
(invoke "python" "./setup.py" "check"
|
||||
"--strict" "--metadata"))))))
|
||||
(propagated-inputs
|
||||
`(("python-coverage" ,python-coverage)
|
||||
("python-pytest" ,python-pytest)))
|
||||
|
@ -1100,8 +1100,8 @@ (define-public python-fixtures
|
|||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(zero? (system* "python" "-m" "testtools.run"
|
||||
"fixtures.test_suite")))))))
|
||||
(invoke "python" "-m" "testtools.run"
|
||||
"fixtures.test_suite"))))))
|
||||
(propagated-inputs
|
||||
;; Fixtures uses pbr at runtime to check versions, etc.
|
||||
`(("python-pbr" ,python-pbr)
|
||||
|
@ -1353,8 +1353,8 @@ (define-public python-pytest-localserver
|
|||
`(#:phases (modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(zero? (system* "py.test" "--genscript=runtests.py"))
|
||||
(zero? (system* "py.test")))))))
|
||||
(invoke "py.test" "--genscript=runtests.py")
|
||||
(invoke "py.test"))))))
|
||||
(native-inputs
|
||||
`(("python-pytest" ,python-pytest)
|
||||
("python-requests" ,python-requests)
|
||||
|
@ -1523,7 +1523,7 @@ (define-public python-pytest-flakes
|
|||
;; It's easier to run tests after install.
|
||||
;; Make installed package available for running the tests
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(zero? (system* "py.test" "-vv")))))))
|
||||
(invoke "py.test" "-vv"))))))
|
||||
(native-inputs
|
||||
`(("python-coverage" ,python-coverage)
|
||||
("python-pytest" ,python-pytest)
|
||||
|
@ -1560,7 +1560,7 @@ (define-public python2-coverage-test-runner
|
|||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(zero? (system* "./testrun")))))))
|
||||
(invoke "./testrun"))))))
|
||||
(propagated-inputs
|
||||
`(("python2-coverage" ,python2-coverage)))
|
||||
(home-page "https://liw.fi/coverage-test-runner/")
|
||||
|
@ -1606,9 +1606,9 @@ (define-public python-pylint
|
|||
(string-append (getenv "PYTHONPATH") ":" work))
|
||||
(copy-recursively "." work)
|
||||
(with-directory-excursion "/tmp"
|
||||
(zero? (system* "python" "-m" "unittest" "discover"
|
||||
"-s" (string-append work "/pylint/test")
|
||||
"-p" "*test_*.py")))))))))
|
||||
(invoke "python" "-m" "unittest" "discover"
|
||||
"-s" (string-append work "/pylint/test")
|
||||
"-p" "*test_*.py"))))))))
|
||||
(home-page "https://github.com/PyCQA/pylint")
|
||||
(synopsis "Python source code analyzer which looks for coding standard
|
||||
errors")
|
||||
|
@ -1841,7 +1841,8 @@ (define-public python-behave-web-api
|
|||
(lambda _
|
||||
(substitute* "setup.py"
|
||||
(("'wheel'") "") ; We don't use it.
|
||||
(("'ordereddict==1.1'") ""))))))) ; Python >= 2.7 has it built-in.
|
||||
(("'ordereddict==1.1'") "")) ; Python >= 2.7 has it built-in.
|
||||
#t)))))
|
||||
(propagated-inputs
|
||||
`(("behave" ,behave)
|
||||
("python-requests" ,python-requests)))
|
||||
|
|
Loading…
Reference in a new issue