From 2f9f943bfc5a02640e0d3a068fd76d8e2a53fd4f Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 27 Sep 2007 02:30:19 +0000 Subject: [PATCH] Show more info. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16638 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 48682542da..d382dcec7a 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -660,16 +660,22 @@ def setupERP5Site( business_template_list=(), ZopeTestCase._print('Data.fs created\n') get_transaction().commit() ZopeTestCase.close(app) - if not quiet: - ZopeTestCase._print('Dumping MySQL database ... ') instance_home = os.environ['INSTANCE_HOME'] - os.system('mysqldump %s > %s/dump.sql' % ( - getMySQLArguments(), instance_home)) + command = 'mysqldump %s > %s/dump.sql' \ + % (getMySQLArguments(), instance_home) + if not quiet: + ZopeTestCase._print('Dumping MySQL database with %s... ' \ + % command) + os.system(command) if not quiet: - ZopeTestCase._print('Dumping static files ... ') + ZopeTestCase._print('done\n') + if not quiet: + ZopeTestCase._print('Dumping static files... ') for dir in ('Constraint', 'Document', 'PropertySheet'): os.system('rm -rf %s/%s.bak' % (instance_home, dir)) os.system('cp -ar %s/%s %s/%s.bak' % (instance_home, dir, instance_home, dir)) + if not quiet: + ZopeTestCase._print('done\n') # Log out if not quiet: -- 2.30.9