From d6cff4d8805ec72b04824662a77f71e4887e2df5 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 30 Aug 2025 10:20:43 +0200 Subject: [PATCH] python3Packages.ansible-runner: skip failing tests --- .../development/python-modules/ansible-runner/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix index b094970f2bdd..760a30469aad 100644 --- a/pkgs/development/python-modules/ansible-runner/default.nix +++ b/pkgs/development/python-modules/ansible-runner/default.nix @@ -17,6 +17,7 @@ importlib-metadata, # tests + addBinToPathHook, ansible-core, glibcLocales, mock, @@ -26,6 +27,7 @@ pytest-xdist, pytestCheckHook, versionCheckHook, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -60,6 +62,7 @@ buildPythonPackage rec { ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ + addBinToPathHook ansible-core # required to place ansible CLI onto the PATH in tests glibcLocales mock @@ -69,12 +72,11 @@ buildPythonPackage rec { pytest-xdist pytestCheckHook versionCheckHook + writableTmpDirAsHomeHook ]; versionCheckProgramArg = "--version"; preCheck = '' - export HOME=$(mktemp -d) - export PATH="$PATH:$out/bin"; # avoid coverage flags rm pytest.ini ''; @@ -90,8 +92,10 @@ buildPythonPackage rec { # Assertion error "test_callback_plugin_censoring_does_not_overwrite" "test_get_role_list" + "test_include_role_events" "test_include_role_from_collection_events" "test_module_level_no_log" + "test_output_when_given_invalid_playbook" "test_resolved_actions" ];