scripts: -d option should take precedence over config file

Bug #1217836 reported by Georges Racinet
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP buildout recipe
Confirmed
Undecided
Unassigned

Bug Description

But currently it does not

Revision history for this message
Georges Racinet (gracinet) wrote :

Actually, this affects scripts that need a DB to be initialized but don't use the session object, such as unit test launchers.
This is the main use case for the "command-line-options=-d" modifier : to open a DB for scripts that have no direct knowledge of OpenERP.

This is currently the limit of that way of thinking : opening the DB before hand with no explicit chaining to the TestCase base class work too coincidentally for it to be predictable if db names are specified at different locations

Can't fix that right now, but if we do, at some point, better also find a way to have coverage take import into account again.

Changed in anybox.recipe.openerp:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.