[mysql-connector-python/el6] disable test_bugs with MySQL 5.1 (EL-6)

Remi Collet remi at fedoraproject.org
Fri Aug 10 09:19:35 UTC 2012


commit 29b491470401cde3acd818cdf86d75b2700a53a2
Author: remi <fedora at famillecollet.com>
Date:   Fri Aug 10 11:19:29 2012 +0200

    disable test_bugs with MySQL 5.1 (EL-6)

 mysql-connector-python.spec |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec
index a645f05..f6b5d8b 100644
--- a/mysql-connector-python.spec
+++ b/mysql-connector-python.spec
@@ -8,7 +8,7 @@
 
 Name:           mysql-connector-python
 Version:        1.0.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MySQL Connector for Python 2
 
 Group:          Development/Languages
@@ -69,11 +69,15 @@ rm -rf build
 
 
 %check
+ver=$(mysql_config --version 2>/dev/null || echo 0)
+if [ "$ver" \< "5.5" ]
+then
+    ## Test 809033 fails with mysql 5.1
+    sed -i -e '/test_bugs/d' python2/tests/__init__.py
+fi
 %{__python} unittests.py \
     --mysql-basedir=%{_prefix} \
-    --verbosity=1 \
-    --log=tests.log
-
+    --verbosity=1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -97,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Fri Aug 10 2012 Remi Collet <remi at fedoraproject.org> - 1.0.5-2
+- disable test_bugs with MySQL 5.1 (EL-6)
+
 * Wed Aug  8 2012 Remi Collet <remi at fedoraproject.org> - 1.0.5-1
 - version 1.0.5 (beta)
 - move from launchpad (devel) to dev.mysql.com


More information about the scm-commits mailing list