ralph pushed to python-ansi2html (f21). "Fix test runner."
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 19:08:27 UTC 2015
>From f5c7adab43c2e8f996ab181aee3519cd75300399 Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean at redhat.com>
Date: Mon, 30 Mar 2015 15:04:21 -0400
Subject: Fix test runner.
diff --git a/python-ansi2html.spec b/python-ansi2html.spec
index 1cd9a3c..bc755ca 100644
--- a/python-ansi2html.spec
+++ b/python-ansi2html.spec
@@ -77,11 +77,11 @@ cp -a . %{py3dir}
%endif
%check
-%{__python2} setup.py test
+PYTHONPATH=. nosetests tests/*.py
%if 0%{?with_python3}
pushd %{py3dir}
-%{__python3} setup.py test
+PYTHONPATH=. nosetests-%{python3_version} tests/*.py
popd
%endif
@@ -99,6 +99,7 @@ popd
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root=%{buildroot}
mv %{buildroot}/%{_bindir}/ansi2html %{buildroot}/%{_bindir}/python3-ansi2html
+mkdir -p %{buildroot}/%{_mandir}/man1/
mv man/ansi2html.1 %{buildroot}/%{_mandir}/man1/python3-ansi2html.1
popd
%endif
@@ -106,6 +107,7 @@ popd
# Note that this have to come after the py3 block so that the
# _bindir/python3-ansi2html switch-a-roo can work.
%{__python2} setup.py install --skip-build --root=%{buildroot}
+mkdir -p %{buildroot}/%{_mandir}/man1/
mv man/ansi2html.1 %{buildroot}/%{_mandir}/man1/ansi2html.1
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-ansi2html.git/commit/?h=f21&id=f5c7adab43c2e8f996ab181aee3519cd75300399
More information about the scm-commits
mailing list