-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] oca_checklog_odoo: configurable failure on WARNING log messages #77
base: master
Are you sure you want to change the base?
Conversation
I've had a brief look, and the PR looks great. Regarding the python 3.5 test, well... I wonder if OCA should not simply stop supporting Odoo 11. |
bin/oca_checklog_odoo
Outdated
if [ -n "${OCA_ENABLE_CHECKLOG_ODOO}" ]; then | ||
checklog-odoo | ||
else | ||
checklog-odoo -i ".*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I proposed this approach, but I wonder if we could use a simple unix command instead such as cat
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, specifically for the case when we don't want to check logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would probably make more sense. Changed it just now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor remark about typo
…st_database and oca_run_tests
50fa884
to
8dbb91e
Compare
Apparently it's been almost a decade since 3.5 was released, so yeah it might be time to let it go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR implements #10 by doing the following:
bin/oca_checklog_odoo
, which fails on stdinWARNING
log messages whenOCA_ENABLE_CHECKLOG_ODOO
is setoca_init_test_database
andoca_run_tests
tooca_checklog_odoo
tests/test_checklog.py