[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/455: gnu: cwltool: Use test-flags.
From: |
guix-commits |
Subject: |
81/455: gnu: cwltool: Use test-flags. |
Date: |
Mon, 20 Jan 2025 15:46:38 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 1520867768de715724cf3005758a2020568ea656
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Dec 27 22:24:41 2024 +0100
gnu: cwltool: Use test-flags.
* gnu/packages/bioinformatics.scm (cwltool)[arguments]: Use #:test-flags
instead of deleting and patching tests in 'modify-tests phase.
Change-Id: I0e4f16d48fba23e4197b69bf1c3923828f178cd0
---
gnu/packages/bioinformatics.scm | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 1db47a8024..87dafd30f7 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -6222,6 +6222,17 @@ documents.")
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ ;; These tests try to connect to the internet.
+ '(list "--ignore=tests/test_content_type.py"
+ "--ignore=tests/test_udocker.py"
+ "--ignore=tests/test_http_input.py"
+ "-k"
+ (string-append
+ "not test_env_filtering"
+ " and not test_load_graph_fragment_from_packed"
+ ;; Tries to use cwl-runners.
+ " and not test_v1_0_arg_empty_prefix_separate_false"))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'loosen-version-restrictions
@@ -6236,23 +6247,6 @@ documents.")
(string-append "version=\"" #$version "\"")))))
(add-after 'unpack 'modify-tests
(lambda _
- ;; Tries to connect to the internet.
- (delete-file "tests/test_content_type.py")
- (delete-file "tests/test_udocker.py")
- (delete-file "tests/test_http_input.py")
- (substitute* "tests/test_load_tool.py"
- (("def test_load_graph_fragment_from_packed")
- (string-append "@pytest.mark.skip(reason=\"Disabled by
Guix\")\n"
- "def test_load_graph_fragment_from_packed")))
- (substitute* "tests/test_examples.py"
- (("def test_env_filtering")
- (string-append "@pytest.mark.skip(reason=\"Disabled by
Guix\")\n"
- "def test_env_filtering")))
- ;; Tries to use cwl-runners.
- (substitute* "tests/test_examples.py"
- (("def test_v1_0_arg_empty_prefix_separate_false")
- (string-append "@pytest.mark.skip(reason=\"Disabled by
Guix\")\n"
- "def
test_v1_0_arg_empty_prefix_separate_false")))
(substitute* '("tests/subgraph/env-tool2.cwl"
"tests/subgraph/env-tool2_req.cwl"
"tests/subgraph/env-wf2_subwf-packed.cwl"
- 17/455: gnu: Add python-legacy-cgi., (continued)
- 17/455: gnu: Add python-legacy-cgi., guix-commits, 2025/01/20
- 30/455: gnu: python-colorama: Update to 0.4.6., guix-commits, 2025/01/20
- 40/455: gnu: python-a2wsgi: Disable one test., guix-commits, 2025/01/20
- 86/455: gnu: python-pyopenssl: Update to 24.3.0., guix-commits, 2025/01/20
- 98/455: gnu: python-matrix-nio: Use test-flags., guix-commits, 2025/01/20
- 92/455: gnu: python-falcon: Update to 4.0.2., guix-commits, 2025/01/20
- 126/455: gnu: python-thinc: Remove old version of dataclasses., guix-commits, 2025/01/20
- 74/455: gnu: python-isodate: Update to 0.7.2., guix-commits, 2025/01/20
- 63/455: gnu: python-pydantic-2: Update to 2.7.0., guix-commits, 2025/01/20
- 93/455: gnu: python-openapi-schema-validator: Relax requirements., guix-commits, 2025/01/20
- 81/455: gnu: cwltool: Use test-flags.,
guix-commits <=
- 97/455: gnu: python-scikit-opt: Add missing input., guix-commits, 2025/01/20
- 100/455: gnu: Add python-propcache., guix-commits, 2025/01/20
- 89/455: gnu: python-dnspython: Disable ECDSA tests., guix-commits, 2025/01/20
- 77/455: gnu: python-cwl-utils: Add missing inputs., guix-commits, 2025/01/20
- 136/455: gnu: python-kombu: Add missing inputs., guix-commits, 2025/01/20
- 165/455: gnu: python-pytorch-geometric: Disable one test., guix-commits, 2025/01/20
- 148/455: gnu: Add rust-speedate-0.15., guix-commits, 2025/01/20
- 187/455: gnu: python-mizani: Add missing input., guix-commits, 2025/01/20
- 149/455: gnu: python-pydantic-core: Update to 2.27.2., guix-commits, 2025/01/20
- 144/455: gnu: Add python-inline-snapshot., guix-commits, 2025/01/20