summaryrefslogtreecommitdiff
path: root/odoo/tests
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2020-04-08 10:53:00 +0000
committerRomeo Fragomeli <rfr@odoo.com>2020-04-16 13:28:07 +0000
commitfbd1d7584a0c7c505c1af8a18ae245ac2aac52a6 (patch)
tree46895f73fa68242aacfabc63a2a4e3d25493ae63 /odoo/tests
parentf91665ac6636a76a7eaefbfdcd7049e0aea471b3 (diff)
[FIX] tests,tools: remove unused code
Due to this commit: odoo/odoo@0ea67467b1301b39a263a386a622e931784eb0de ( https://github.com/odoo/odoo/blob/0ea67467b1301b39a263a386a622e931784eb0de/odoo/tools/config.py#L521 ) the screencasts value is not a string anymore but a valid PATH. So now you can't set '1', 'true' or 't' to force to have the same directory as the screenshot dir. Steps to reproduce: odoo-bin ... --screencasts 1 (with a failed JS test to produce a screencast) closes odoo/odoo#49665 X-original-commit: ab1bf59a3b78f3c0857755cb2439636b6df297c3 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com> Signed-off-by: rfr-odoo <rfr-odoo@users.noreply.github.com>
Diffstat (limited to 'odoo/tests')
-rw-r--r--odoo/tests/common.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py
index fc23ea71e64..33c8f0ed695 100644
--- a/odoo/tests/common.py
+++ b/odoo/tests/common.py
@@ -627,11 +627,7 @@ class ChromeBrowser():
self.screenshots_dir = os.path.join(otc['screenshots'], get_db_name(), 'screenshots')
self.screencasts_dir = None
if otc['screencasts']:
- if otc['screencasts'] in ('1', 'true', 't'):
- self.screencasts_dir = os.path.join(otc['screenshots'], get_db_name(), 'screencasts')
- else:
- self.screencasts_dir =os.path.join(otc['screencasts'], get_db_name(), 'screencasts')
-
+ self.screencasts_dir = os.path.join(otc['screencasts'], get_db_name(), 'screencasts')
self.screencast_frames = []
os.makedirs(self.screenshots_dir, exist_ok=True)