python310Packages.pytest-ansible: disable tests that fail in darwin sandbox

This commit is contained in:
Theodore Ni 2023-07-17 19:06:44 -07:00
parent 897f5b1ad1
commit 673285bdd8
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

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 = [