Merge lp:~vauxoo/openerp-tools/openerprunbot-process_module_to_install-dev-moylop260 into lp:openerp-tools

Proposed by Moisés López - http://www.vauxoo.com
Status: Needs review
Proposed branch: lp:~vauxoo/openerp-tools/openerprunbot-process_module_to_install-dev-moylop260
Merge into: lp:openerp-tools
Diff against target: 47 lines (+16/-1)
2 files modified
openerp-runbot/openerprunbot/jobs/install_all.py (+2/-0)
openerp-runbot/runbot-job-7 (+14/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-tools/openerprunbot-process_module_to_install-dev-moylop260
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com (community) Needs Resubmitting
Nhomar - Vauxoo Pending
OpenERP R&D Team Pending
Review via email: mp+181473@code.launchpad.net

Description of the change

This MP Add IMP for process modules to install

To post a comment you must log in.
262. By Moisés López - http://www.vauxoo.com

[REF][openerp-runbot] Add exclude branches with char "!"

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

We add the posibility for exclude modules with char "!"

review: Needs Resubmitting

Unmerged revisions

262. By Moisés López - http://www.vauxoo.com

[REF][openerp-runbot] Add exclude branches with char "!"

261. By Moisés López - http://www.vauxoo.com

[IMP][openerp-runbot] Process modules to install

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp-runbot/openerprunbot/jobs/install_all.py'
2--- openerp-runbot/openerprunbot/jobs/install_all.py 2013-06-20 12:00:15 +0000
3+++ openerp-runbot/openerprunbot/jobs/install_all.py 2013-09-08 19:54:11 +0000
4@@ -438,6 +438,8 @@
5 --web-path %(web)s
6 --test-port %(port)s
7 """ % values
8+ if job.modules:
9+ command += " --modules %s "%( ','.join( job.modules ) )
10 command = command.split()
11 if no_no_netrpc:
12 command.append('--no-no-netrpc')
13
14=== modified file 'openerp-runbot/runbot-job-7'
15--- openerp-runbot/runbot-job-7 2013-07-09 12:48:42 +0000
16+++ openerp-runbot/runbot-job-7 2013-09-08 19:54:11 +0000
17@@ -118,9 +118,18 @@
18
19 if install_all:
20 results['install_all'] = 1 # assume failure
21+ modules = "--all-modules"
22+ if args.modules:
23+ if '!' in args.modules:
24+ #exclude modules
25+ modules = '--exclude ' + ' --exclude '.join( args.modules.replace('!', '').split(',') )
26+ else:
27+ modules = '--module ' + ' --module '.join( args.modules.split(',') )
28+ modules += ' --module web_hello --module web_tests --module web_tests_demo ' #Needs for no show error js
29+ modules += ' --exclude auth_ldap --exclude document_ftp '#modules default exclude
30 try:
31 env = env_from_args(args, 'all')
32- oe(env, os.path.join(args.log_prefix, install_all_log_path), 'initialize --all-modules --exclude auth_ldap --exclude document_ftp --tests')
33+ oe(env, os.path.join(args.log_prefix, install_all_log_path), 'initialize %s --tests'%(modules) )
34 r = check_install_success(os.path.join(args.log_prefix, install_all_log_path))
35 results['install_all'] = 0 if r else 1
36 except:
37@@ -166,6 +175,10 @@
38 parser.add_argument('--no-no-netrpc', action='store_true',
39 help='do not pass the --no-netrpc flag to openerp-server.'
40 ' This is necessary for newer (circa 7.1) openerp')
41+ parser.add_argument('--modules', metavar='STRING',
42+ required=False,
43+ help='Modules to install')
44+
45
46 parser.set_defaults(run=run)
47 args = parser.parse_args()