Skip to content

Commit

Permalink
don't run the tests with centos6, whose python2.6 is too old
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@7915 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 8, 2014
1 parent 92bf4bd commit c6864dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpmbuild/xpra.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

%define libwebp libwebp
%define libvpx libvpx
%define run_tests 1

# any centos / rhel supported:
%if 0%{?el6}%{?el7}
Expand All @@ -47,6 +48,8 @@
%endif

%if 0%{?el6}
#can't run the tests with python 2.6 which is too old:
%define run_tests 0
#distro version is too old replace with our private libraries
%define libvpx libvpx-xpra
%define libwebp libwebp-xpra
Expand Down Expand Up @@ -248,6 +251,7 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra_launcher.desktop
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra.desktop

%if 0%{?run_tests}
pushd xpra-%{version}-python2/tests
PYTHONPATH=%{buildroot}%{python2_sitearch}:. %{__python2} unit/run.py
popd
Expand All @@ -258,6 +262,7 @@ pushd xpra-%{version}-python3/tests
PYTHONPATH=%{buildroot}%{python3_sitearch}:. %{__python3} unit/run.py
popd
%endif
%endif


%post
Expand Down

0 comments on commit c6864dd

Please sign in to comment.