mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: ranger: More test tweaks.
There's no functional difference between 'make test_pytest' and running 'py.test' directly, but there may be in future. This follows up on commit 14173b3c6765bd8fcb2b12ea28fc27226645c7e1. * gnu/packages/disk.scm (ranger)[arguments]: Use #:test-target to run the (same) tests through 'make'. [native-inputs]: Remove left-over python-flake8 and python-pylint.
This commit is contained in:
parent
47f9fb18a3
commit
43c97cceae
1 changed files with 11 additions and 9 deletions
|
@ -528,13 +528,15 @@ (define-public ranger
|
|||
(build-system python-build-system)
|
||||
(inputs
|
||||
`(("w3m" ,w3m)))
|
||||
(native-inputs ;for tests
|
||||
`(("python-flake8" ,python-flake8)
|
||||
("python-pylint" ,python-pylint)
|
||||
("python-pytest" ,python-pytest)
|
||||
("which" ,which)))
|
||||
(native-inputs
|
||||
`(("which" ,which)
|
||||
|
||||
;; For tests.
|
||||
("python-pytest" ,python-pytest)))
|
||||
(arguments
|
||||
'(#:phases
|
||||
'( ;; The 'test' target runs developer tools like pylint, which fail.
|
||||
#:test-target "test_pytest"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'configure 'wrap-program
|
||||
;; Tell 'ranger' where 'w3mimgdisplay' is.
|
||||
|
@ -548,9 +550,9 @@ (define-public ranger
|
|||
`("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)))
|
||||
#t)))
|
||||
(replace 'check
|
||||
;; Running 'make test' simply prints 'Ran 0 tests in 0.000s'.
|
||||
(lambda _
|
||||
(invoke "py.test" "tests"))))))
|
||||
;; The default check phase simply prints 'Ran 0 tests in 0.000s'.
|
||||
(lambda* (#:key test-target #:allow-other-keys)
|
||||
(invoke "make" test-target))))))
|
||||
(home-page "https://ranger.github.io/")
|
||||
(synopsis "Console file manager")
|
||||
(description "ranger is a console file manager with Vi key bindings. It
|
||||
|
|
Loading…
Reference in a new issue