diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-09-22 00:51:36 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-09-22 00:54:07 +0100 |
commit | dd8f54d330af2e37385d6d65521b7294711b4b62 (patch) | |
tree | 87c67cc4993cd5593e72eae47bcba4e52e6a832c /app-admin | |
parent | mail-mta/proton-mail-bridge: add 2.3.0, drop 2.2.2 (diff) | |
download | gentoo-dd8f54d330af2e37385d6d65521b7294711b4b62.tar.gz gentoo-dd8f54d330af2e37385d6d65521b7294711b4b62.tar.bz2 gentoo-dd8f54d330af2e37385d6d65521b7294711b4b62.zip |
app-admin/ansible-lint: add omitted patch
Closes: https://bugs.gentoo.org/872245
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/ansible-lint/files/ansible-lint-6.6.1_test-module-check.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app-admin/ansible-lint/files/ansible-lint-6.6.1_test-module-check.patch b/app-admin/ansible-lint/files/ansible-lint-6.6.1_test-module-check.patch new file mode 100644 index 000000000000..0f6e9aadde9e --- /dev/null +++ b/app-admin/ansible-lint/files/ansible-lint-6.6.1_test-module-check.patch @@ -0,0 +1,32 @@ +--- a/conftest.py ++++ b/conftest.py +@@ -7,29 +7,6 @@ + import pytest + from ansible.module_utils.common.yaml import HAS_LIBYAML + +-# checking if user is running pytest without installing test dependencies: +-missing = [] +-for module in ["ansible", "black", "flake8", "flaky", "mypy", "pylint"]: +- if not importlib.util.find_spec(module): +- missing.append(module) +-if missing: +- print( +- f"FATAL: Missing modules: {', '.join(missing)} -- probably you missed installing test requirements with: pip install -e '.[test]'", +- file=sys.stderr, +- ) +- sys.exit(1) +- +-if not HAS_LIBYAML and sys.version_info >= (3, 9, 0): +- # While presence of libyaml is not required for runtime, we keep this error +- # fatal here in order to be sure that we spot libyaml errors during testing. +- # +- # For 3.8.x we do not do this check, as libyaml does not have an arm64 build for py38. +- print( +- "FATAL: For testing, we require pyyaml to be installed with its native extension, missing it would make testing 3x slower and risk missing essential bugs.", +- file=sys.stderr, +- ) +- sys.exit(1) +- + + os.environ["NO_COLOR"] = "1" + |