From 4e6047dca432f0c807b3bcb614989e61823c8ad3 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 12 Sep 2010 14:07:43 +0200 Subject: [PATCH] [IMP] Saving test reports in directories bzr revid: fp@tinyerp.com-20100912120743-ipb8mbl1udk53uuo --- bin/addons/base/base.sql | 2 +- bin/tools/config.py | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/addons/base/base.sql b/bin/addons/base/base.sql index bb792b78845..778a64b2420 100644 --- a/bin/addons/base/base.sql +++ b/bin/addons/base/base.sql @@ -344,7 +344,7 @@ CREATE TABLE ir_model_data ( -- Users --------------------------------- -insert into res_users (id,login,password,name,action_id,active,company_id) values (1,'admin',NULL,'Administrator',NULL,True,1); +insert into res_users (id,login,password,name,action_id,active,company_id) values (1,'admin','admin','Administrator',NULL,True,1); insert into ir_model_data (name,module,model,noupdate,res_id) values ('user_root','base','res.users',True,1); -- Compatibility purpose, to remove V6.0 diff --git a/bin/tools/config.py b/bin/tools/config.py index b90df1441d9..17959ec133b 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -83,6 +83,7 @@ class configmanager(object): 'list_db' : True, 'timezone' : False, # to override the default TZ 'test_file' : False, + 'test_report_directory' : False, 'test_disable' : False, 'test_commit' : False, 'static_http_enable': False, @@ -158,6 +159,7 @@ class configmanager(object): # Testing Group group = optparse.OptionGroup(parser, "Testing Configuration") group.add_option("--test-file", dest="test_file", help="Launch a YML test file.") + group.add_option("--test-report-directory", dest="test_report_directory", help="If set, will save sample of all reports in this directory.") group.add_option("--test-disable", action="store_true", dest="test_disable", default=False, help="Disable loading test files.") group.add_option("--test-commit", action="store_true", dest="test_commit", @@ -282,11 +284,12 @@ class configmanager(object): if getattr(opt, arg): self.options[arg] = getattr(opt, arg) - keys = ['language', 'translate_out', 'translate_in', 'debug_mode', 'smtp_ssl', - 'stop_after_init', 'logrotate', 'without_demo', 'netrpc', 'xmlrpc', 'syslog', - 'list_db', 'server_actions_allow_code', 'xmlrpcs', - 'test_file', 'test_disable', 'test_commit' - ] + keys = [ + 'language', 'translate_out', 'translate_in', 'debug_mode', 'smtp_ssl', + 'stop_after_init', 'logrotate', 'without_demo', 'netrpc', 'xmlrpc', 'syslog', + 'list_db', 'server_actions_allow_code', 'xmlrpcs', + 'test_file', 'test_disable', 'test_commit', 'test_report_directory' + ] for arg in keys: if getattr(opt, arg) is not None: