diff options
| author | Xavier-Do <xdo@odoo.com> | 2019-07-09 15:35:52 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2019-07-12 10:02:32 +0000 |
| commit | 87fc1554d6a1823ac9061aab089adfd052190d21 (patch) | |
| tree | 282276ff73a69107885afbf553b721ea36de0fc5 /addons/website/tools.py | |
| parent | 80fa405af51284c0cf3fa18c3416a77524fdc68d (diff) | |
[FIX] core: avoid writting sources during tests
Future runbot improvement may share sources between build,
meaning that sources will be readonly to avoid any interaction.
_touch() was supposed to handle ro filesystem but
f7130556 introduced a new test that was not working
in this case.
Instead of trying to touch file and pseudomocking the result
if the filesystem is readonly, this commit add a real patch
on getmtime.
cherry-pick of b295723c999
closes odoo/odoo#34823
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/website/tools.py')
0 files changed, 0 insertions, 0 deletions
