From 673285bdd89f0b073d18a55207196eadb08a4e48 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 17 Jul 2023 19:06:44 -0700 Subject: [PATCH] python310Packages.pytest-ansible: disable tests that fail in darwin sandbox --- .../python-modules/pytest-ansible/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix index 110db96aba9..6942842c8d6 100644 --- a/pkgs/development/python-modules/pytest-ansible/default.nix +++ b/pkgs/development/python-modules/pytest-ansible/default.nix @@ -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 = [