Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
670e42c61ba4
Commit
670e42c61ba4
authored
6 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add option to not create database
parent
31897e0b25e1
No related branches found
Branches containing commit
Tags
15.3.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
do_tests.py
+6
-2
6 additions, 2 deletions
do_tests.py
with
6 additions
and
2 deletions
do_tests.py
+
6
−
2
View file @
670e42c6
...
...
@@ -112,7 +112,12 @@
default
=
None
,
choices
=
odoo_log_levels
,
)
parser
.
add_argument
(
'
--no-create-database
'
,
dest
=
'
createdb
'
,
action
=
'
store_false
'
,
)
# TODO options
# - db host/uri (include socket)
# - db user for creation/remove
# - odoo log level
...
...
@@ -115,8 +120,7 @@
# TODO options
# - db host/uri (include socket)
# - db user for creation/remove
# - odoo log level
# - create db
nmspc
=
parser
.
parse_args
(
argv
)
verbose
=
nmspc
.
verbose
...
...
@@ -129,7 +133,7 @@
dbname
=
nmspc
.
dbname
odoo_db_user
=
nmspc
.
db_user
odoo_db_password
=
nmspc
.
db_password
recreate_db
=
True
recreate_db
=
nmspc
.
createdb
extensions
=
[]
install_log_level
=
(
nmspc
.
log_level
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment