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
=== modified file 'openerp-runbot/openerprunbot/jobs/install_all.py'
--- openerp-runbot/openerprunbot/jobs/install_all.py 2013-06-20 12:00:15 +0000
+++ openerp-runbot/openerprunbot/jobs/install_all.py 2013-09-08 19:54:11 +0000
@@ -438,6 +438,8 @@
438 --web-path %(web)s438 --web-path %(web)s
439 --test-port %(port)s439 --test-port %(port)s
440 """ % values440 """ % values
441 if job.modules:
442 command += " --modules %s "%( ','.join( job.modules ) )
441 command = command.split()443 command = command.split()
442 if no_no_netrpc:444 if no_no_netrpc:
443 command.append('--no-no-netrpc')445 command.append('--no-no-netrpc')
444446
=== modified file 'openerp-runbot/runbot-job-7'
--- openerp-runbot/runbot-job-7 2013-07-09 12:48:42 +0000
+++ openerp-runbot/runbot-job-7 2013-09-08 19:54:11 +0000
@@ -118,9 +118,18 @@
118118
119 if install_all:119 if install_all:
120 results['install_all'] = 1 # assume failure120 results['install_all'] = 1 # assume failure
121 modules = "--all-modules"
122 if args.modules:
123 if '!' in args.modules:
124 #exclude modules
125 modules = '--exclude ' + ' --exclude '.join( args.modules.replace('!', '').split(',') )
126 else:
127 modules = '--module ' + ' --module '.join( args.modules.split(',') )
128 modules += ' --module web_hello --module web_tests --module web_tests_demo ' #Needs for no show error js
129 modules += ' --exclude auth_ldap --exclude document_ftp '#modules default exclude
121 try:130 try:
122 env = env_from_args(args, 'all')131 env = env_from_args(args, 'all')
123 oe(env, os.path.join(args.log_prefix, install_all_log_path), 'initialize --all-modules --exclude auth_ldap --exclude document_ftp --tests')132 oe(env, os.path.join(args.log_prefix, install_all_log_path), 'initialize %s --tests'%(modules) )
124 r = check_install_success(os.path.join(args.log_prefix, install_all_log_path))133 r = check_install_success(os.path.join(args.log_prefix, install_all_log_path))
125 results['install_all'] = 0 if r else 1134 results['install_all'] = 0 if r else 1
126 except:135 except:
@@ -166,6 +175,10 @@
166 parser.add_argument('--no-no-netrpc', action='store_true',175 parser.add_argument('--no-no-netrpc', action='store_true',
167 help='do not pass the --no-netrpc flag to openerp-server.'176 help='do not pass the --no-netrpc flag to openerp-server.'
168 ' This is necessary for newer (circa 7.1) openerp')177 ' This is necessary for newer (circa 7.1) openerp')
178 parser.add_argument('--modules', metavar='STRING',
179 required=False,
180 help='Modules to install')
181
169182
170 parser.set_defaults(run=run)183 parser.set_defaults(run=run)
171 args = parser.parse_args()184 args = parser.parse_args()