From 4b5a9b217e7790d5151ec012c0898bc1eb7773d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20P=C3=A1ral?= Date: Mon, 20 Feb 2017 11:31:11 +0100 Subject: [PATCH 1/2] add python-pytest-cov builddep to run test suite during building --- testcloud.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testcloud.spec b/testcloud.spec index 0653535..7531777 100644 --- a/testcloud.spec +++ b/testcloud.spec @@ -3,7 +3,7 @@ Name: testcloud Version: 0.1.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tool for running cloud images locally License: GPLv2+ @@ -31,7 +31,8 @@ Requires: python-jinja2 Requires: net-tools BuildRequires: python2-devel -BuildRequires: pytest +BuildRequires: python2-pytest +BuildRequires: python-pytest-cov BuildRequires: python-setuptools # Provides: python2-testcloud @@ -96,6 +97,9 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir %{_bindir}/testcloud %changelog +* Mon Feb 20 2017 Kamil Páral - 0.1.11-2 +- add python-pytest-cov builddep to run test suite during building + * Mon Feb 20 2017 Kamil Páral - 0.1.11-1 - make libvirt url configurable - avoid race condition during listing domains From e4ab9b9dd2448f6e4b73c948b3beff81464dcc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20P=C3=A1ral?= Date: Wed, 22 Feb 2017 04:35:52 +0100 Subject: [PATCH 2/2] don't install py[co] files into /etc --- testcloud.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/testcloud.spec b/testcloud.spec index 7531777..3003faf 100644 --- a/testcloud.spec +++ b/testcloud.spec @@ -3,7 +3,7 @@ Name: testcloud Version: 0.1.11 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tool for running cloud images locally License: GPLv2+ @@ -52,6 +52,8 @@ getent group testcloud >/dev/null || groupadd testcloud %check %{__python2} setup.py test +# Remove compiled .py files from /etc after running unittests +rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o} %build %{__python2} setup.py build @@ -93,10 +95,13 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir %attr(0644, root, root) %{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules -%config(noreplace) %{_sysconfdir}/testcloud/settings.p* +%config(noreplace) %{_sysconfdir}/testcloud/settings.py %{_bindir}/testcloud %changelog +* Wed Feb 22 2017 Kamil Páral - 0.1.11-3 +- don't install py[co] files into /etc + * Mon Feb 20 2017 Kamil Páral - 0.1.11-2 - add python-pytest-cov builddep to run test suite during building