Merge pull request #244091 from tjni/pytest-ansible-darwin-sandbox

python310Packages.pytest-ansible: disable tests that fail in darwin sandbox
This commit is contained in:
Nikolay Korotkiy 2023-07-25 01:06:04 +04:00 committed by GitHub
commit 6b45edb610
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, ansible-core
@ -55,6 +56,17 @@ buildPythonPackage rec {
# [Errno -3] Temporary failure in name resolution
"test_connection_failure_v2"
"test_connection_failure_extra_inventory_v2"
] ++ lib.optionals stdenv.isDarwin [
# These tests fail in the Darwin sandbox
"test_ansible_facts"
"test_func"
"test_param_override_with_marker"
];
disabledTestPaths = lib.optionals stdenv.isDarwin [
# These tests fail in the Darwin sandbox
"tests/test_adhoc.py"
"tests/test_adhoc_result.py"
];
pythonImportsCheck = [