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
4e7dfc05eb3c
Commit
4e7dfc05eb3c
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
do_tests: stop tests if there is no module to test
parent
3dde52d26cb5
No related branches found
No related tags found
1 merge request
!107
📝 do_tests: stop tests if there is no module to test
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
do_tests
+8
-1
8 additions, 1 deletion
do_tests
with
13 additions
and
1 deletion
NEWS.rst
+
5
−
0
View file @
4e7dfc05
...
...
@@ -2,6 +2,11 @@
History
=======
16.1.0
------
Shell script: avoid running tests if there is no module to test.
16.0.0
------
...
...
This diff is collapsed.
Click to expand it.
do_tests
+
8
−
1
View file @
4e7dfc05
...
...
@@ -37,7 +37,14 @@
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
Modules to install:
$modules_to_install
"
echo
"
$DEBUG
module_list=
$modules_to_install
"
modules_to_tests
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list_tests
)
}
echo
"
$DEBUG
module_list_tests=
$modules_to_tests
"
if
[[
-z
"
$modules_to_tests
"
]]
;
then
echo
"
$INFO
No module to tests"
exit
0
fi
echo
"
$DEBUG
Looking value of fail_on_errors"
fail_on_errors
=
${
ODOO_SCRIPTS_FAIL_ON_ERRORS
-
$(
read_odoo_scripts_configuration_key fail_on_errors True
)
}
echo
"
$DEBUG
fail_on_errors=
$fail_on_errors
"
...
...
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