git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitf84bc7264c8027097f6365d81f490ba1c726b16d authorWael Nasreddine <wael.nasreddine@gmail.com> dateTue 18 Feb 2020, 17:42 (7 years ago) parent3adda62
1 file changed+6−1
pkgs/development/python-modules/ansible-runner/default.nix+6−1
pkgs/development/python-modules/ansible-runner/default.nix+6−1
@@ -6,6 +6,7 @@
66, python-daemon
77, pyyaml
88, six
9+, stdenv
910, ansible
1011, pytest
1112, mock
@@ -30,8 +31,12 @@ buildPythonPackage rec {
3031 six
3132 ];
3233
34+ # test_process_isolation_settings is currently broken on Darwin Catalina
35+ # https://github.com/ansible/ansible-runner/issues/413
3336 checkPhase = ''
34− HOME=$(mktemp -d) pytest --ignore test/unit/test_runner.py -k "not test_prepare"
37+ HOME=$TMPDIR pytest \
38+ --ignore test/unit/test_runner.py \
39+ -k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}"
3540 '';
3641
3742 meta = with lib; {