guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 84ebcebaee5b81e4a913739afb95f6e6cffc3720
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Jun 1 17:36:40 2024 +0200
gnu: u-boot-tools: Remove python-coverage native-input.
* gnu/packages/bootloaders.scm (u-boot-tools):
[native-inputs]: Remove python-coverage.
[arguments]<#:phases>: Adapt patch phase.
Change-Id: I94394544079197b4a3f8c53cc0b3d78d1f5dc8be
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/bootloaders.scm | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 90b6c66261..d79ef28188 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -943,7 +943,6 @@ Info manual.")))
(modify-inputs (package-native-inputs u-boot)
(prepend python-filelock
python-pycryptodomex
- python-coverage
python-pytest
python-pytest-xdist))
(modify-inputs (package-native-inputs u-boot)
@@ -969,14 +968,6 @@ Info manual.")))
(("/bin/false") (which "false")))
(substitute* "tools/dtoc/fdt_util.py"
(("'cc'") "'gcc'"))
- (substitute* "tools/u_boot_pylib/test_util.py"
- ;; python3-coverage is simply called coverage in guix.
- (("python3-coverage") "coverage")
-
- ;; Don't require 100% coverage since it's brittle and can
- ;; fail with newer versions of coverage or dependencies.
- (("raise ValueError\\('Test coverage failure'\\)")
- "print('Continuing anyway since Guix does not care :O')"))
(substitute* "test/run"
;; Make it easier to find test failures.
(("#!/bin/bash") "#!/bin/bash -x")
@@ -989,9 +980,9 @@ Info manual.")))
"# run_test \"sandbox_noinst\"")
(("run_test \"sandbox_vpl\"")
"# run_test \"sandbox_vpl\"")
- ;; FIXME: code coverage not working
- (("run_test \"binman code coverage\"")
- "# run_test \"binman code coverage\"")
+ ;; Disable code coverage tests.
+ (("run_test \"(\\w+) code coverage\"" all)
+ (string-append "# " all))
;; This test would require internet access.
(("\\./tools/buildman/buildman") (which "true")))
(substitute* "test/py/tests/test_sandbox_exit.py"