Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
3e7f37f0
Commit
3e7f37f0
authored
Oct 03, 2014
by
Alejandro Alvarez Ayllon
Browse files
FTS-142
: Run tests in el7 too
parent
632c515e
Changes
2
Hide whitespace changes
Inline
Side-by-side
dist/fts-rest.spec
View file @
3e7f37f0
...
...
@@ -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}
...
...
src/fts3rest/setup_pylons_plugin.py
0 → 100755
View file @
3e7f37f0
#!/usr/bin/env python
from
setuptools
import
setup
setup
(
entry_points
=
"""
[nose.plugins]
pylons = pylons.test:PylonsPlugin
"""
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment