From b273cfa2774a6af6d491efc8e341197f471729cf32a49958b643df4da878dc72 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 19 Oct 2016 13:35:58 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=50 --- cloud-init.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cloud-init.spec b/cloud-init.spec index b0ce5c3..6e90c48 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -55,6 +55,7 @@ BuildRequires: python-devel BuildRequires: python-setuptools # pkg-config is needed to find correct systemd unit dir BuildRequires: pkg-config +%if 0%{?suse_version} > 1320 # Test requirements BuildRequires: python-Cheetah BuildRequires: python-Jinja2 @@ -69,6 +70,7 @@ BuildRequires: python-mock BuildRequires: python-oauthlib BuildRequires: python-requests BuildRequires: python-testtools +%endif Requires: bash Requires: file Requires: growpart @@ -179,13 +181,15 @@ echo "ssh_genkeytypes: ['rsa', 'dsa']" >> %{SOURCE1} %build python setup.py build + +%if 0%{?suse_version} > 1320 %check # these tests are currently failing due to suse patches rm -v tests/unittests/test_distros/test_netconfig.py rm -v tests/unittests/test_net.py rm -v tests/unittests/test_datasource/test_opennebula.py python -m testtools.run - +%endif %install