From 6f69c3ba1955160e1e0b60932f0751c12c0f1722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 15 Dec 2014 17:47:42 +0900 Subject: [PATCH] Tests: print the time taken to load mysql dump --- product/ERP5Type/tests/custom_zodb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5Type/tests/custom_zodb.py b/product/ERP5Type/tests/custom_zodb.py index 9f3e99afe1..2dc596f289 100644 --- a/product/ERP5Type/tests/custom_zodb.py +++ b/product/ERP5Type/tests/custom_zodb.py @@ -53,7 +53,9 @@ if load: if os.path.exists(dump_sql_path): command = "mysql %s < %s" % (getMySQLArguments(), dump_sql_path) _print("Restoring MySQL database with %s ... " % command) + _start = time.time() subprocess.check_call(command, shell=True) + _print('done (%.3fs)\n' % (time.time() - _start)) else: _print("Could not find MySQL dump (%r), will recreate catalog ... " % dump_sql_path) os.environ['erp5_tests_recreate_catalog'] = '1' -- 2.30.9