From a4a5f1e5c6cf2f218d595d32ae29e97169d2c689 Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida <leonardo@nexedi.com> Date: Thu, 5 Nov 2009 16:04:10 +0000 Subject: [PATCH] cosmetic output tweak on test startup git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30342 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/custom_zodb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/tests/custom_zodb.py b/product/ERP5Type/tests/custom_zodb.py index 8cd0f088b7..8601216618 100644 --- a/product/ERP5Type/tests/custom_zodb.py +++ b/product/ERP5Type/tests/custom_zodb.py @@ -15,12 +15,12 @@ save = int(os.environ.get('erp5_save_data_fs', 0)) if load: dump_sql = os.path.join(instance_home, 'dump.sql') if os.path.exists(dump_sql): - print("Restoring MySQL database ... ") + print "Restoring MySQL database ... ", ret = os.system("mysql %s < %s" % (getMySQLArguments(), dump_sql)) assert not ret else: os.environ['erp5_tests_recreate_catalog'] = '1' - print("Restoring static files ... ") + print "Restoring static files ... ", for dir in ('Constraint', 'Document', 'PropertySheet', 'Extensions'): if os.path.exists(os.path.join(instance_home, '%s.bak' % dir)): full_path = os.path.join(instance_home, dir) @@ -28,7 +28,7 @@ if load: shutil.copytree(os.path.join(instance_home, '%s.bak' % dir), full_path, symlinks=True) else: - print("Cleaning static files at %s ... " % instance_home) + print "Cleaning static files at %s ... " % instance_home, for dir in ('Constraint', 'Document', 'PropertySheet', 'Extensions'): full_path = os.path.join(instance_home, dir) if os.path.exists(full_path): @@ -44,3 +44,4 @@ elif load: Storage = DemoStorage(base=FileStorage(data_fs_path)) else: Storage = DemoStorage() + -- 2.30.9