]> git.pld-linux.org Git - packages/python.git/commitdiff
skip bdist_rpm tests
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 3 Dec 2015 08:36:07 +0000 (09:36 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Thu, 3 Dec 2015 08:36:07 +0000 (09:36 +0100)
they confuse our builders

python-bdist_rpm.patch

index a154a35ef937ef2b9faf13ec7648dc2dde0ea002..1b7b52133c000b9ef1fd88618a94f01cdcfb8bb3 100644 (file)
@@ -1,6 +1,6 @@
 diff -dur Python-2.7.10.orig/Lib/distutils/command/bdist_rpm.py Python-2.7.10/Lib/distutils/command/bdist_rpm.py
 --- Python-2.7.10.orig/Lib/distutils/command/bdist_rpm.py      2015-05-23 18:09:01.000000000 +0200
-+++ Python-2.7.10/Lib/distutils/command/bdist_rpm.py   2015-12-02 21:32:28.137323794 +0100
++++ Python-2.7.10/Lib/distutils/command/bdist_rpm.py   2015-12-03 09:23:08.000000000 +0100
 @@ -338,6 +338,16 @@
          if self.rpm3_mode:
              rpm_cmd.extend(['--define',
@@ -27,3 +27,24 @@ diff -dur Python-2.7.10.orig/Lib/distutils/command/bdist_rpm.py Python-2.7.10/Li
          q_cmd = r"rpm -q --qf '%s %s\n' --specfile '%s'" % (
              src_rpm, non_src_rpm, spec_path)
  
+diff -dur Python-2.7.10.orig/Lib/distutils/tests/test_bdist_rpm.py Python-2.7.10/Lib/distutils/tests/test_bdist_rpm.py
+--- Python-2.7.10.orig/Lib/distutils/tests/test_bdist_rpm.py   2015-05-23 18:09:02.000000000 +0200
++++ Python-2.7.10/Lib/distutils/tests/test_bdist_rpm.py        2015-12-03 09:24:55.000000000 +0100
+@@ -48,6 +48,8 @@
+                      'the rpm command is not found')
+     @unittest.skipIf(find_executable('rpmbuild') is None,
+                      'the rpmbuild command is not found')
++    @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"),
++                    'building the python rpm')
+     def test_quiet(self):
+         # let's create a package
+         tmp_dir = self.mkdtemp()
+@@ -91,6 +93,8 @@
+                      'the rpm command is not found')
+     @unittest.skipIf(find_executable('rpmbuild') is None,
+                      'the rpmbuild command is not found')
++    @unittest.skipIf(os.environ.get("WITHIN_PYTHON_RPM_BUILD"),
++                    'building the python rpm')
+     def test_no_optimize_flag(self):
+         # let's create a package that brakes bdist_rpm
+         tmp_dir = self.mkdtemp()
This page took 0.185401 seconds and 4 git commands to generate.