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
Merge requests
!89
Something went wrong on our end
add chown option to do_tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add chown option to do_tests
topic/default/do_tests-chown
into
branch/default
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Vincent Hatakeyama
requested to merge
topic/default/do_tests-chown
into
branch/default
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
efa11618
Show latest version
2 files
+
11
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
efa11618
add chown option to do_tests
· efa11618
Vincent Hatakeyama
authored
3 years ago
odoo_scripts/do_tests.py
+
10
−
2
Options
@@ -146,4 +146,10 @@
parser_add_flake8_group
(
parser
)
parser_add_isort_group
(
parser
)
add_build_options
(
parser
)
parser
.
add_argument
(
"
--chown
"
,
help
=
"
run chown [default: %(default)s]
"
,
action
=
"
store_true
"
,
dest
=
"
run_chown
"
,
)
# TODO options
@@ -149,6 +155,6 @@
# TODO options
# - db host/uri (include socket)
# - db user for creation/remove
#
- db host/uri (include socket)
#
- db user for creation/remove
nmspc
=
parser
.
parse_args
(
argv
)
apply
(
nmspc
)
@@ -244,6 +250,8 @@
if
nmspc
.
LOAD_LANGUAGE
:
args
.
append
(
"
--load-language
"
)
args
.
append
(
nmspc
.
LOAD_LANGUAGE
)
if
nmspc
.
run_chown
:
args
.
append
(
"
--chown
"
)
# also pass build options
args
.
extend
(
get_build_options
(
nmspc
))
if
recreate_db
:
Loading