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
3963bcdd47d8
Commit
3963bcdd47d8
authored
5 years ago
by
Etienne Ferriere
Browse files
Options
Downloads
Patches
Plain Diff
Corrected two typing errors in the program executing the unit tests.
Added an additional option to this script.
parent
93f38ec588fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
do_tests
+2
-2
2 additions, 2 deletions
do_tests
do_tests.py
+10
-0
10 additions, 0 deletions
do_tests.py
with
12 additions
and
2 deletions
do_tests
+
2
−
2
View file @
3963bcdd
...
...
@@ -25,8 +25,8 @@
# this is the same value as conf/drone/odoo.conf
if
[[
-e
"
${
project_home
}
/conf/drone/odoo.conf"
]]
;
then
dbowner
=
$(
$python
-B
-c
"from six.moves import configparser ; c = config
P
arser.ConfigParser() ; c.read('
${
project_home
}
/conf/drone/odoo.conf') ; print(c.get('options', 'db_user'))"
)
dbowner
=
$(
$python
-B
-c
"from six.moves import configparser ; c = config
p
arser.ConfigParser() ; c.read('
${
project_home
}
/conf/drone/odoo.conf') ; print(c.get('options', 'db_user'))"
)
unaccent
=
$(
$python
-B
-c
"from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('
${
project_home
}
/conf/drone/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)"
)
# this is the same value as conf/dev/odoo.conf
elif
[[
-e
"
${
project_home
}
/conf/dev/odoo.conf"
]]
;
then
...
...
@@ -29,8 +29,8 @@
unaccent
=
$(
$python
-B
-c
"from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('
${
project_home
}
/conf/drone/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)"
)
# this is the same value as conf/dev/odoo.conf
elif
[[
-e
"
${
project_home
}
/conf/dev/odoo.conf"
]]
;
then
dbowner
=
$(
$python
-B
-c
"from six.moves import configparser ; c = config
P
arser.ConfigParser() ; c.read('
${
project_home
}
/conf/dev/odoo.conf') ; print(c.get('options', 'db_user'))"
)
dbowner
=
$(
$python
-B
-c
"from six.moves import configparser ; c = config
p
arser.ConfigParser() ; c.read('
${
project_home
}
/conf/dev/odoo.conf') ; print(c.get('options', 'db_user'))"
)
unaccent
=
$(
$python
-B
-c
"from six.moves import configparser ; c = configparser.ConfigParser() ; c.read('
${
project_home
}
/conf/dev/odoo.conf') ; print(c.get('options', 'unaccent') if c.has_option('options', 'unaccent') else False)"
)
else
dbowner
=
odoo
...
...
This diff is collapsed.
Click to expand it.
do_tests.py
+
10
−
0
View file @
3963bcdd
...
...
@@ -146,6 +146,13 @@
help
=
"
log handler [default: %(default)s]
"
,
default
=
None
,
)
parser
.
add_argument
(
'
--load-language
'
,
help
=
"
specifies the languages for the translations you want to be
"
"
loaded
"
,
default
=
None
,
dest
=
'
LOAD_LANGUAGE
'
,
)
# TODO options
# - db host/uri (include socket)
# - db user for creation/remove
...
...
@@ -278,6 +285,9 @@
args
.
append
(
nmspc
.
log_handler
)
if
start_postgresql
:
args
.
append
(
'
--start-postgresql
'
)
if
nmspc
.
LOAD_LANGUAGE
:
args
.
append
(
'
--load-language
'
)
args
.
append
(
nmspc
.
LOAD_LANGUAGE
)
if
recreate_db
:
if
start_postgresql
:
docker_client
=
docker_api
(
base_url
=
'
unix://var/run/docker.sock
'
)
...
...
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