mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-qemu-qmp: Improve package style.
* gnu/packages/virtualization.scm (python-qemu-qmp): [arguments]<#:phases>: Rewrite check phase replacement to only run tests/protocol.py and not quality-checks. Change-Id: I3485e2ee10d46b1699674f506876e7c185674653 Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
71aa037a1a
commit
035a359e80
1 changed files with 5 additions and 7 deletions
|
@ -2092,13 +2092,11 @@ mainly implemented in user space.")
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(if tests?
|
||||||
;; The Avocado test runner insists on writing stuff to HOME.
|
(begin ; avocado insists on writing stuff to HOME.
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
;; The mypy tests fail (see:
|
(invoke "avocado" "--show=all" "run" "tests/protocol.py"))
|
||||||
;; https://gitlab.com/jsnow/qemu.qmp/-/issues/1).
|
(format #t "test suite not run~%")))))))
|
||||||
(delete-file "tests/mypy.sh")
|
|
||||||
(invoke "avocado" "--show=all" "run" "tests")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-avocado-framework
|
(list python-avocado-framework
|
||||||
python-setuptools-scm
|
python-setuptools-scm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue