From 94a80127e485b0b9e7df89c9977b06d0e9bb57b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 20 Nov 2019 12:16:30 +0100 Subject: [PATCH] unittests: disabled on RHEL due to missing dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tuned.spec b/tuned.spec index 99537b6..5babd56 100644 --- a/tuned.spec +++ b/tuned.spec @@ -60,7 +60,11 @@ Requires(preun): systemd Requires(postun): systemd BuildRequires: %{_py}, %{_py}-devel # BuildRequires for 'make test' -BuildRequires: %{_py}-unittest2, %{_py}-flexmock, %{_py}-configobj +BuildRequires: %{_py}-unittest2, %{_py}-configobj +# No flexmock on RHEL +%if ! 0%{?rhel} +BuildRequires: %{_py}-flexmock +%endif BuildRequires: %{_py}-decorator, %{_py}-pyudev Requires: %{_py}-decorator, %{_py}-pyudev, %{_py}-configobj Requires: %{_py}-schedutils, %{_py}-linux-procfs, %{_py}-perf @@ -262,7 +266,10 @@ touch %{buildroot}%{_sysconfdir}/modprobe.d/kvm.rt.tuned.conf desktop-file-validate %{buildroot}%{_datadir}/applications/tuned-gui.desktop %check +# Unit tests not working on RHEL due to missing flexmock dependency +%if ! 0%{?rhel} make test +%endif %post %systemd_post tuned.service