Commit 2f9f943b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Show more info.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f5bf594
...@@ -660,16 +660,22 @@ def setupERP5Site( business_template_list=(), ...@@ -660,16 +660,22 @@ def setupERP5Site( business_template_list=(),
ZopeTestCase._print('Data.fs created\n') ZopeTestCase._print('Data.fs created\n')
get_transaction().commit() get_transaction().commit()
ZopeTestCase.close(app) ZopeTestCase.close(app)
if not quiet:
ZopeTestCase._print('Dumping MySQL database ... ')
instance_home = os.environ['INSTANCE_HOME'] instance_home = os.environ['INSTANCE_HOME']
os.system('mysqldump %s > %s/dump.sql' % ( command = 'mysqldump %s > %s/dump.sql' \
getMySQLArguments(), instance_home)) % (getMySQLArguments(), instance_home)
if not quiet:
ZopeTestCase._print('Dumping MySQL database with %s... ' \
% command)
os.system(command)
if not quiet: 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'): for dir in ('Constraint', 'Document', 'PropertySheet'):
os.system('rm -rf %s/%s.bak' % (instance_home, dir)) 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)) os.system('cp -ar %s/%s %s/%s.bak' % (instance_home, dir, instance_home, dir))
if not quiet:
ZopeTestCase._print('done\n')
# Log out # Log out
if not quiet: if not quiet:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment