From 1d6004888f9ad2ff2dc26a786290635239d69c1a Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Dec 20 2010 22:28:54 +0000 Subject: remove redundant test run --- diff --git a/cheetah-2.4.4-dont-run-tests-twice.patch b/cheetah-2.4.4-dont-run-tests-twice.patch new file mode 100644 index 0000000..eae8aaf --- /dev/null +++ b/cheetah-2.4.4-dont-run-tests-twice.patch @@ -0,0 +1,10 @@ +--- Cheetah-2.4.4/cheetah/CheetahWrapper.py.orig 2010-12-12 22:43:26.000000000 -0500 ++++ Cheetah-2.4.4/cheetah/CheetahWrapper.py 2010-12-20 17:24:44.524608918 -0500 +@@ -263,7 +263,6 @@ + if '-v' in self.testOpts: + verbosity = 2 + runner = unittest.TextTestRunner(verbosity=verbosity) +- runner.run(unittest.TestSuite(Test.suites)) + results = runner.run(unittest.TestSuite(Test.suites)) + exit(int(not results.wasSuccessful())) + diff --git a/python-cheetah.spec b/python-cheetah.spec index 5de5486..730148f 100644 --- a/python-cheetah.spec +++ b/python-cheetah.spec @@ -10,6 +10,8 @@ License: MIT URL: http://cheetahtemplate.org/ Source: http://pypi.python.org/packages/source/C/Cheetah/Cheetah-%{version}.tar.gz +Patch0: cheetah-2.4.4-dont-run-tests-twice.patch + BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: python @@ -30,6 +32,7 @@ Java, SQL, form emails and even Python code. %prep %setup -q -n Cheetah-%{version} +%patch0 -p1 # remove unnecessary shebang lines to silence rpmlint %{__sed} -i -e '/^#!/,1d' cheetah/Tests/* \ cheetah/DirectiveAnalyzer.py cheetah/Utils/Misc.py