From 4cf6018279229d045a745a37bfe16fdc219f3868 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 7 Oct 2017 04:44:54 -0400 Subject: [PATCH] Use 24-bit screen for Xvfb. Without this mode, the Qt5 test crashes. --- python-matplotlib.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 0797100..2dc1d64 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -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