Use 24-bit screen for Xvfb.

Without this mode, the Qt5 test crashes.
This commit is contained in:
Elliott Sales de Andrade 2017-10-07 04:44:54 -04:00
parent f28833ef2d
commit 4cf6018279

View File

@ -477,13 +477,15 @@ echo "backend : %{backend}" > matplotlibrc
MPLCONFIGDIR=$PWD \
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
PYTHONPATH=%{buildroot}%{python2_sitearch} \
xvfb-run -a %{__python2} -m pytest --pyargs matplotlib -m 'not network' -k 'not test_polycollection_close' -ra
xvfb-run -a -s "-screen 0 640x480x24" \
%{__python2} -m pytest --pyargs matplotlib -m 'not network' -k 'not test_polycollection_close' -ra
%if %{with_python3}
MPLCONFIGDIR=$PWD \
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
PYTHONPATH=%{buildroot}%{python3_sitearch} \
xvfb-run -a %{__python3} tests.py -m 'not network' -ra
xvfb-run -a -s "-screen 0 640x480x24" \
%{__python3} tests.py -m 'not network' -ra
%endif
%endif # run_tests