Enable test_no_decoders_available with sounds from libpurple

This commit is contained in:
Miro Hrončok 2020-09-10 13:10:03 +02:00
commit 02e02edf51

View file

@ -31,6 +31,8 @@ BuildRequires: pyproject-rpm-macros
%if %{with tests}
BuildRequires: /usr/bin/xvfb-run mesa-dri-drivers
BuildRequires: python3-pytest
# libpurple has sound files unbundled in the repacked tarball
BuildRequires: libpurple
%endif
@ -105,18 +107,20 @@ find . -name '*.py' | xargs sed --in-place -e's|#!/usr/bin/\(env \)\?python||;s/
# Skip flaky tests
export CI=on
# The files are unbundled in the repacked tarball
ln -s %{_datadir}/sounds/purple/*.wav tests/data/media/
# Interactive tests are skipped for obvious reasons.
# Media player tests are skipped -- we don't have PulseAudio running.
# test_find_font_match & test_have_font skipped -- they look for a font named 'arial'
# test_freetype_face tests are is skipped -- they depend on non-free font we remove
# test_no_decoders_available depends on removed possibly-non-free audio file
%pytest \
-vv \
--non-interactive \
--ignore=tests/interactive \
--ignore=tests/integration/media \
-m 'not (requires_user_action or requires_user_validation or only_interactive)' \
-k 'not (test_find_font_match or test_have_font or test_freetype_face or test_no_decoders_available)' \
-k 'not (test_find_font_match or test_have_font or test_freetype_face)' \
tests
%endif