[mysql-connector-python] disable test_network and test_connection on EL-5

Remi Collet remi at fedoraproject.org
Fri Sep 7 06:21:49 UTC 2012


commit 630d7aa03873579196366477efa2b1c31cb3aa65
Author: remi <fedora at famillecollet.com>
Date:   Fri Sep 7 08:21:40 2012 +0200

    disable test_network and test_connection on EL-5

 mysql-connector-python.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec
index 116cc70..58ac456 100644
--- a/mysql-connector-python.spec
+++ b/mysql-connector-python.spec
@@ -76,8 +76,14 @@ 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
+    sed -e '/test_bugs/d' \
+        -i python2/tests/__init__.py
 fi
+%if 0%{?rhel} == 5
+    sed -e '/test_network/d' \
+        -e '/test_connection/d' \
+        -i python2/tests/__init__.py
+%endif
 %{__python} unittests.py \
     --mysql-basedir=%{_prefix} \
     --verbosity=1
@@ -105,6 +111,7 @@ rm -rf $RPM_BUILD_ROOT
 * Fri Sep  7 2012 Remi Collet <remi at fedoraproject.org> - 1.0.6-1.b1
 - version 1.0.6 (beta)
 - remove non GPL documentation
+- disable test_network and test_connection on EL-5
 
 * Fri Aug 10 2012 Remi Collet <remi at fedoraproject.org> - 1.0.5-2
 - disable test_bugs with MySQL 5.1 (EL-6)


More information about the scm-commits mailing list