diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2024-05-10 00:54:23 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-23 22:52:17 +0200 |
commit | 1fcd89f93973876ee9d48530093ddada8963ba9b (patch) | |
tree | ab572c7dfa0b34ae0c902626ff70885fc72561bf | |
parent | 067996875ecc9b444299f3672b1515d84f4b7853 (diff) |
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>
-rw-r--r-- | gnu/packages/virtualization.scm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index c886c7489a..0b46281050 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -2023,13 +2023,11 @@ mainly implemented in user space.") #~(modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; The Avocado test runner insists on writing stuff to HOME. - (setenv "HOME" "/tmp") - ;; The mypy tests fail (see: - ;; https://gitlab.com/jsnow/qemu.qmp/-/issues/1). - (delete-file "tests/mypy.sh") - (invoke "avocado" "--show=all" "run" "tests"))))))) + (if tests? + (begin ; avocado insists on writing stuff to HOME. + (setenv "HOME" "/tmp") + (invoke "avocado" "--show=all" "run" "tests/protocol.py")) + (format #t "test suite not run~%"))))))) (native-inputs (list python-avocado-framework python-setuptools-scm |