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
235a970e6f55
Commit
235a970e6f55
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
fix test procedure
parent
f29d5765379b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!114
🚑 fix test procedure
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
do_tests
+5
-2
5 additions, 2 deletions
do_tests
run_tests
+1
-1
1 addition, 1 deletion
run_tests
with
11 additions
and
3 deletions
NEWS.rst
+
5
−
0
View file @
235a970e
...
...
@@ -2,6 +2,11 @@
History
=======
16.5.0
------
When running tests, only install modules that are not going to be tested. Modules to be tested will be installed during the tests.
16.4.0
------
...
...
This diff is collapsed.
Click to expand it.
do_tests
+
5
−
2
View file @
235a970e
...
...
@@ -36,6 +36,5 @@
unaccent
=
False
fi
echo
"
$DEBUG
Looking for modules to install"
modules_to_install
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
echo
"
$DEBUG
module_list=
$modules_to_install
"
module_list
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
modules_to_tests
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list_tests
)
}
...
...
@@ -41,4 +40,8 @@
modules_to_tests
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list_tests
)
}
# Install modules that will not be tested
modules_to_install
=
$(
$python
-B
-c
"print(','.join(set('
$module_list
'.split(','))-set('
$modules_to_tests
'.split(','))))"
)
echo
"
$DEBUG
module_list=
$module_list
"
echo
"
$DEBUG
module_to_install=
$modules_to_install
"
echo
"
$DEBUG
module_list_tests=
$modules_to_tests
"
if
[[
-z
"
$modules_to_tests
"
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
run_tests
+
1
−
1
View file @
235a970e
...
...
@@ -13,7 +13,7 @@
if
[[
"
$tested_modules
"
!=
""
]]
;
then
update
=
"-
u
$tested_modules
"
update
=
"-
i
$tested_modules
"
fi
dbname
=
$1
if
[[
-z
"
$dbname
"
]]
;
...
...
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