From 4ff5212697f25463df44e630777a2e3fcb0a4d75 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Oct 28 2015 16:01:13 +0000 Subject: Add work-arounds for tests which are broken in mock --- diff --git a/python-systemd.spec b/python-systemd.spec index b536108..7ac3ef8 100644 --- a/python-systemd.spec +++ b/python-systemd.spec @@ -79,6 +79,9 @@ ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_st cp -p README.md NEWS %{buildroot}%{_pkgdocdir}/ %check +# if the socket is not there, skip doc tests +test -f /run/systemd/journal/stdout || \ + sed -i 's/--doctest[^ ]*//g' pytest.ini make PYTHON=%{__python2} check || : make PYTHON=%{__python3} check || :