diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 907d4279956..35257d226b4 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -3285,6 +3285,10 @@ specified directories.") import re sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0]) "))))) + (add-before 'build 'set-HOME + (lambda _ + ;; Otherwise Ansible fails to create its config directory. + (setenv "HOME" "/tmp"))) (add-after 'install 'replace-symlinks (lambda _ ;; Replace symlinks with duplicate copies of the ansible @@ -3316,8 +3320,6 @@ sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0]) (replace 'check (lambda* (#:key inputs outputs tests? test-flags #:allow-other-keys) (when tests? - ;; Otherwise Ansible fails to create its config directory. - (setenv "HOME" "/tmp") ;; The test suite needs to be run with 'ansible-test', which ;; does some extra environment setup. Taken from ;; https://raw.githubusercontent.com/ansible/ansible/\ @@ -3328,7 +3330,7 @@ sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0]) openssl python-mock python-pycryptodome - python-pytest + python-pytest-8 python-pytest-forked python-pytest-mock python-pytest-xdist