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
2d95ef77
Commit
2d95ef77
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add install option to do_tests
parent
95fc55e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!42
✨ add install option to do_tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
odoo_scripts/do_tests.py
+12
-1
12 additions, 1 deletion
odoo_scripts/do_tests.py
with
17 additions
and
1 deletion
NEWS.rst
+
5
−
0
View file @
2d95ef77
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
History
History
=======
=======
8.0.2
-----
Add install option to do_tests, allowing to override installed modules.
8.0.1
8.0.1
-----
-----
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/do_tests.py
+
12
−
1
View file @
2d95ef77
...
@@ -114,6 +114,12 @@
...
@@ -114,6 +114,12 @@
"
--no-create-database
"
,
dest
=
"
createdb
"
,
action
=
"
store_false
"
"
--no-create-database
"
,
dest
=
"
createdb
"
,
action
=
"
store_false
"
)
)
parser
.
add_argument
(
parser
.
add_argument
(
"
-i
"
,
"
--install
"
,
help
=
"
Modules to install (override defaults from setup.cfg)
"
,
default
=
None
,
)
parser
.
add_argument
(
"
--test
"
,
"
--test
"
,
help
=
"
Modules to test (override defaults from setup.cfg)
"
,
help
=
"
Modules to test (override defaults from setup.cfg)
"
,
default
=
None
,
default
=
None
,
...
@@ -158,6 +164,7 @@
...
@@ -158,6 +164,7 @@
test_log_level
=
(
test_log_level
=
(
nmspc
.
log_level
if
nmspc
.
log_level
else
nmspc
.
test_log_level
nmspc
.
log_level
if
nmspc
.
log_level
else
nmspc
.
test_log_level
)
)
override_installed_module
=
nmspc
.
install
override_tested_module
=
nmspc
.
test
override_tested_module
=
nmspc
.
test
dbport
=
nmspc
.
dbport
dbport
=
nmspc
.
dbport
start_postgresql
=
nmspc
.
start_postgresql
start_postgresql
=
nmspc
.
start_postgresql
...
@@ -357,7 +364,11 @@
...
@@ -357,7 +364,11 @@
# TODO start odoo and detect if install fails
# TODO start odoo and detect if install fails
if
nmspc
.
docker
:
if
nmspc
.
docker
:
install_args
=
list
(
args
)
install_args
=
list
(
args
)
install_args
.
append
(
"
--install-default
"
)
if
override_installed_module
:
install_args
.
append
(
"
--install
"
)
install_args
.
append
(
override_installed_module
)
else
:
install_args
.
append
(
"
--install-default
"
)
if
languages
:
if
languages
:
install_args
.
append
(
"
--load-language
"
)
install_args
.
append
(
"
--load-language
"
)
install_args
.
append
(
languages
)
install_args
.
append
(
languages
)
...
...
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