Skip to content

Commit

Permalink
[FIX] checklog-odoo test
Browse files Browse the repository at this point in the history
  • Loading branch information
baimont committed Oct 13, 2023
1 parent 11fc9c3 commit 7ea96e2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ cover/
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
Expand Down
Empty file added tests/data/empty.log
Empty file.
13 changes: 13 additions & 0 deletions tests/data/test1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
2017-05-21 14:01:49,686 8038 INFO ? odoo: Odoo version 10.0
2017-05-21 14:01:49,687 8038 INFO ? odoo: addons paths: [u'/home/nobody/odoo-10.0/addons', u'/home/nobody/odoo/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mail-environment/setup/mail_environment/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mis-builder/setup/mis_builder/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mis-builder-operating-unit/setup/mis_builder_operating_unit/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-server-environment-ir-config-parameter/setup/server_environment_ir_config_parameter/odoo/addons', u'/home/nobody/.virtualenvs/odoo-bscw/local/lib/python2.7/site-packages/odoo/addons', u'/home/nobody/.virtualenvs/odoo-bscw/lib/python2.7/site-packages/odoo/addons', '/home/nobody/odoo/src/odoo/odoo/addons']
2017-05-21 14:01:49,687 8038 INFO ? odoo: database: default@default:default
2017-05-21 14:01:50,496 8038 INFO ? odoo.modules.loading: init db
2017-05-21 14:01:50,637 8038 ERROR ? odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
...
OSError: [Errno 2] No such file or directory: '/home/nobody/odoo-10.0/addons'
2017-05-21 14:01:50,637 8038 CRITICAL ? odoo.service.server: Failed to initialize database `odoo-bscw-testsuite-1`.
Traceback (most recent call last):
...
2017-05-21 14:01:50,638 8038 INFO ? odoo.service.server: Initiating shutdown
2017-05-21 14:01:50,638 8038 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ extras =
test
metadata
commands =
coverage run -m pytest {posargs}
coverage xml
coverage html
coverage run -m pytest -v ./tests

0 comments on commit 7ea96e2

Please sign in to comment.