From a79b93df208342aafdc6f8df8f0373187cb453a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 17 Jun 2010 12:59:30 +0000 Subject: [PATCH] - place of MySQL_python develop egg can vary git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36427 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/tests/assertSoftware.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/buildout/tests/assertSoftware.py b/buildout/tests/assertSoftware.py index b920cd7c940..ff08a1a1575 100644 --- a/buildout/tests/assertSoftware.py +++ b/buildout/tests/assertSoftware.py @@ -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""" -- 2.30.9