[Erp5-report] r36427 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 17 14:59:33 CEST 2010


Author: luke
Date: Thu Jun 17 14:59:30 2010
New Revision: 36427

URL: http://svn.erp5.org?rev=36427&view=rev
Log:
 - place of MySQL_python develop egg can vary

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=36427&r1=36426&r2=36427&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Thu Jun 17 14:59:30 2010
@@ -107,10 +107,14 @@ class AssertLddLibs(unittest.TestCase):
 
   def test_MySQLdb(self):
     """Checks proper linking to mysql library from MySQLdb egg"""
-    result = os.system("ldd develop-eggs/MySQL_python-1.2.3c1-py2.4-linux-x86"
-       "_64.egg/_mysql.so | grep -q 'parts/mysql-tritonn-5.0/lib/mysql/libmys"
-       "qlclient_r.so'")
-    self.assertEqual(result, 0)
+    error_list = []
+    for d in os.listdir('develop-eggs'):
+      if d.startswith('MySQL_python'):
+        path = os.path.join('develop-eggs', d, '_mysql.so')
+        if os.system("ldd %s | grep -q 'parts/mysql-tritonn-5.0/lib/my"
+            "sql/libmysqlclient_r.so'" % path) != 0:
+          error_list.append(path)
+    self.assertEqual(error_list, [])
 
   def test_memcached_libevent(self):
     """Checks proper liunking to libevent from memcached"""




More information about the Erp5-report mailing list