From e2424d921c5e8818b0d5ac3b5d5b65ca43fa8b19 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Mar 27 2018 17:50:29 +0000 Subject: Make test runner use python3 with python3 tests --- 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