• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / server-tools / 5423
86%

Build:
DEFAULT BRANCH: 9.0
Ran 27 Mar 2018 09:11AM UTC
Jobs 6
Files 146
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5423

push

travis-ci

elicoidal
[FIX] module_auto_update: Add .pyo sample file (#1205)

Without this patch, if your tests are run under a `PYTHONOPTIMIZE=2` precompiled environment, they'd fail with this error because a new `.pyo` file would be created.:

    FAIL: test_basic (openerp.addons.module_auto_update.tests.test_addon_hash.TestAddonHash)
    Traceback (most recent call last):
    `   File "/opt/odoo/auto/addons/module_auto_update/tests/test_addon_hash.py", line 41, in test_basic
    `     'static/src/some.js',
    ` AssertionError: Lists differ: ['README.rst', 'data/f1.xml', ... != ['README.rst', 'data/f1.xml', ...
    `
    ` First differing element 13:
    ` models/stuff.pyo
    ` static/src/some.js
    `
    ` First list contains 1 additional elements.
    ` First extra element 14:
    ` static/src/some.js
    `
    `   ['README.rst',
    `    'data/f1.xml',
    `    'data/f2.xml',
    `    'i18n/en.po',
    `    'i18n/en_US.po',
    `    'i18n/fr.po',
    `    'i18n/fr_BE.po',
    `    'i18n/test.pot',
    `    'i18n_extra/en.po',
    `    'i18n_extra/fr.po',
    `    'i18n_extra/nl_NL.po',
    `    'models/stuff.py',
    `    'models/stuff.pyc',
    ` -  'models/stuff.pyo',
    `    'static/src/some.js']
    Ran 3 tests in 0.005s
    FAILED

With this patch, the `.pyo` file is included, so tests will pass anywhere.

4658 of 5902 relevant lines covered (78.92%)

1.76 hits per line

Jobs
ID Job ID Ran Files Coverage
3 5423.3 (TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="database_cleanup,auth_totp_password_security") 27 Mar 2018 09:13AM UTC 0
76.52
Travis Job 5423.3
4 5423.4 (TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="database_cleanup,auth_totp_password_security") 27 Mar 2018 09:13AM UTC 0
76.52
Travis Job 5423.4
5 5423.5 (TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup") 27 Mar 2018 09:11AM UTC 0
77.22
Travis Job 5423.5
6 5423.6 (TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup") 27 Mar 2018 09:12AM UTC 0
77.22
Travis Job 5423.6
7 5423.7 (TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="auth_totp_password_security") 27 Mar 2018 09:17AM UTC 0
99.48
Travis Job 5423.7
8 5423.8 (TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="auth_totp_password_security") 27 Mar 2018 09:17AM UTC 0
99.48
Travis Job 5423.8
Source Files on build 5423
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5423
  • 17dfb917 on github
  • Prev Build on 9.0 (#5382)
  • Next Build on 9.0 (#5425)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc