diff options
author | Wael Nasreddine <wael.nasreddine@gmail.com> | 2020-02-18 17:42:40 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 17:42:40 -1000 |
commit | f84bc7264c8027097f6365d81f490ba1c726b16d (patch) | |
tree | f4332c44ce1ec9438e37233684d3f836f62300b8 /pkgs/development/python-modules | |
parent | 3adda62dc3c80c7f6666c364b3c966a823f66eb5 (diff) |
pythonPackages.ansible-runner: skip failing test on Catalina (#80484)
Catalina replaced the director /home with a symbolic link to `/System/Volumes/Data/home` and this test is looking for `/home` explicitly. I filed https://github.com/ansible/ansible-runner/issues/413 to get this fix upstream.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/ansible-runner/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix index 62f95c3cefcef..6a71ae9e1d3ef 100644 --- a/pkgs/development/python-modules/ansible-runner/default.nix +++ b/pkgs/development/python-modules/ansible-runner/default.nix @@ -6,6 +6,7 @@ , python-daemon , pyyaml , six +, stdenv , ansible , pytest , mock @@ -30,8 +31,12 @@ buildPythonPackage rec { six ]; + # test_process_isolation_settings is currently broken on Darwin Catalina + # https://github.com/ansible/ansible-runner/issues/413 checkPhase = '' - HOME=$(mktemp -d) pytest --ignore test/unit/test_runner.py -k "not test_prepare" + HOME=$TMPDIR pytest \ + --ignore test/unit/test_runner.py \ + -k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}" ''; meta = with lib; { |