diff --git a/ansible.spec b/ansible.spec index fd25a7d..781faa5 100644 --- a/ansible.spec +++ b/ansible.spec @@ -350,6 +350,10 @@ make PYTHON=/usr/bin/python2 tests %if 0%{?with_python3} pushd %{py3dir} ln -s /usr/bin/pytest-3 bin/pytest +# Fedora 26 does not have pathfix ¯\_(ツ)_/¯ +%if (0%{?fedora} > 26) + pathfix.py -i %{__python3} -p test/runner +%endif make PYTHON=/usr/bin/python3 tests-py3 popd %endif # python3