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
efa11618135c
Commit
efa11618135c
authored
3 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add chown option to do_tests
parent
2f4ad63a0073
No related branches found
Branches containing commit
Tags
20.3.1
Tags containing commit
1 merge request
!89
✨ add chown option to do_tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+1
-1
1 addition, 1 deletion
NEWS.rst
odoo_scripts/do_tests.py
+10
-2
10 additions, 2 deletions
odoo_scripts/do_tests.py
with
11 additions
and
3 deletions
NEWS.rst
+
1
−
1
View file @
efa11618
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
Better output of odoo 15 tests with run_tests shell script.
Better output of odoo 15 tests with run_tests shell script.
Fix chown of extra directories.
Fix chown of extra directories.
Add chown option to do_tests.
15.0.0
15.0.0
------
------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/do_tests.py
+
10
−
2
View file @
efa11618
...
@@ -146,4 +146,10 @@
...
@@ -146,4 +146,10 @@
parser_add_flake8_group
(
parser
)
parser_add_flake8_group
(
parser
)
parser_add_isort_group
(
parser
)
parser_add_isort_group
(
parser
)
add_build_options
(
parser
)
add_build_options
(
parser
)
parser
.
add_argument
(
"
--chown
"
,
help
=
"
run chown [default: %(default)s]
"
,
action
=
"
store_true
"
,
dest
=
"
run_chown
"
,
)
# TODO options
# TODO options
...
@@ -149,6 +155,6 @@
...
@@ -149,6 +155,6 @@
# TODO options
# TODO options
# - db host/uri (include socket)
#
- db host/uri (include socket)
# - db user for creation/remove
#
- db user for creation/remove
nmspc
=
parser
.
parse_args
(
argv
)
nmspc
=
parser
.
parse_args
(
argv
)
apply
(
nmspc
)
apply
(
nmspc
)
...
@@ -244,6 +250,8 @@
...
@@ -244,6 +250,8 @@
if
nmspc
.
LOAD_LANGUAGE
:
if
nmspc
.
LOAD_LANGUAGE
:
args
.
append
(
"
--load-language
"
)
args
.
append
(
"
--load-language
"
)
args
.
append
(
nmspc
.
LOAD_LANGUAGE
)
args
.
append
(
nmspc
.
LOAD_LANGUAGE
)
if
nmspc
.
run_chown
:
args
.
append
(
"
--chown
"
)
# also pass build options
# also pass build options
args
.
extend
(
get_build_options
(
nmspc
))
args
.
extend
(
get_build_options
(
nmspc
))
if
recreate_db
:
if
recreate_db
:
...
...
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