summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2010-09-12 14:07:43 +0200
committerFabien Pinckaers <fp@tinyerp.com>2010-09-12 14:07:43 +0200
commit4e6047dca432f0c807b3bcb614989e61823c8ad3 (patch)
tree95b960580b514e7e5786f41411f8c107945322c9
parenteff67ab23d37bc228865704205652d3de5c4a9c2 (diff)
[IMP] Saving test reports in directories
bzr revid: fp@tinyerp.com-20100912120743-ipb8mbl1udk53uuo
-rw-r--r--bin/addons/base/base.sql2
-rw-r--r--bin/tools/config.py13
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: