From 07b855fccf9bbbc12726da9dcd4a294cc998cd49 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 26 Oct 2018 11:26:18 +0200 Subject: [PATCH] [FIX] tests: remove chrome sandboxing It appears that chrome headless with sandboxing is failing when running containerized because it tries to use Linux namespaces. With this commit, the no-sanbox optional arg is used to avoid this issue. Closes #26456 Closes #28053 --- odoo/tests/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 9ee1def1aac..b6c9a2e6156 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -423,7 +423,8 @@ class ChromeBrowser(): '--user-data-dir': self.user_data_dir, '--disable-translate': '', '--window-size': '1366x768', - '--remote-debugging-port': str(self.devtools_port) + '--remote-debugging-port': str(self.devtools_port), + '--no-sandbox': '', } cmd = [self.executable] cmd += ['%s=%s' % (k, v) if v else k for k, v in switches.items()]