Commit 3e7f37f0 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-142: Run tests in el7 too

parent 632c515e
......@@ -13,9 +13,12 @@ Source0: https://grid-deployment.web.cern.ch/grid-deployment/dms/fts3/tar
BuildRequires: cmake
BuildRequires: python-jsonschema
%if 0%{?el6}
%if %{?rhel}%{!?rhel:0} == 6
BuildRequires: python-nose1.1
%endif
%if %{?rhel}%{!?rhel:0} >= 7
BuildRequires: python-nose
%endif
BuildRequires: python-pylons
BuildRequires: scipy
BuildRequires: m2crypto
......@@ -112,11 +115,15 @@ fi
make %{?_smp_mflags}
%check
%if 0%{?el6}
pushd src/fts3rest
%if %{?rhel}%{!?rhel:0} == 6
PYTHONPATH=../ nosetests1.1 --with-xunit --xunit-file=/tmp/nosetests.xml
popd
%endif
%if %{?rhel}%{!?rhel:0} >= 7
PYTHONPATH=../ ./setup_pylons_plugin.py install --user
PYTHONPATH=../ nosetests --with-xunit --xunit-file=/tmp/nosetests.xml
%endif
popd
%install
mkdir -p %{buildroot}
......
#!/usr/bin/env python
from setuptools import setup
setup(
entry_points="""
[nose.plugins]
pylons = pylons.test:PylonsPlugin
"""
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment