summaryrefslogtreecommitdiffstats
path: root/debian/patches/deb-testing.patch
blob: 7556c4fad6c6ba0f8745b78c80dfbd44244ad984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Debian-specific changes for running the tests offline during the build
Forwarded: not-needed
--- ansible-lint.orig/conftest.py
+++ ansible-lint/conftest.py
@@ -15,7 +15,7 @@
 
 # checking if user is running pytest without installing test dependencies:
 missing = []
-for module in ["ansible", "black", "mypy", "pylint"]:
+for module in ["ansible", "black"]:
     if not importlib.util.find_spec(module):
         missing.append(module)
 if missing:
@@ -30,18 +30,6 @@
     """Ensure we run preparation only on master thread when running in parallel."""
     if is_help_option_present(config):
         return
-    if is_master(config):
-        # we need to be sure that we have the requirements installed as some tests
-        # might depend on these. This approach is compatible with GHA caching.
-        try:
-            subprocess.check_output(
-                ["./tools/install-reqs.sh"],  # noqa: S603
-                stderr=subprocess.PIPE,
-                text=True,
-            )
-        except subprocess.CalledProcessError as exc:
-            print(f"{exc}\n{exc.stderr}\n{exc.stdout}", file=sys.stderr)  # noqa: T201
-            sys.exit(1)
 
 
 def is_help_option_present(config: pytest.Config) -> bool:
--- ansible-lint.orig/test/test_schemas.py
+++ ansible-lint/test/test_schemas.py
@@ -10,7 +10,6 @@
 from unittest.mock import DEFAULT, MagicMock, patch
 
 import pytest
-import spdx.config
 
 from ansiblelint.file_utils import Lintable
 from ansiblelint.schemas import __file__ as schema_module
@@ -18,7 +17,6 @@
 from ansiblelint.schemas.main import validate_file_schema
 
 schema_path = Path(schema_module).parent
-spdx_config_path = Path(spdx.config.__file__).parent
 
 
 def test_refresh_schemas() -> None: