summaryrefslogtreecommitdiff
path: root/chromium/testing/scripts/common.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-11-28 16:14:41 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-12-13 15:19:41 +0000
commit61d9742824d54be5693191fe502325a909feca59 (patch)
treecbf28e779b11338fe52eb75b915684cd8955542c /chromium/testing/scripts/common.py
parent45f9ded08bb7526984b24ccb5a5327aaf6821676 (diff)
downloadqtwebengine-chromium-61d9742824d54be5693191fe502325a909feca59.tar.gz
BASELINE: Update Chromium to 108.0.5359.70
Change-Id: I77334ff232b819600f275bd3cfe41fbaa3619230 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/445904 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/testing/scripts/common.py')
-rw-r--r--chromium/testing/scripts/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/testing/scripts/common.py b/chromium/testing/scripts/common.py
index 0ffbca045cd..6793c52da67 100644
--- a/chromium/testing/scripts/common.py
+++ b/chromium/testing/scripts/common.py
@@ -1,4 +1,4 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
+# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -453,7 +453,7 @@ class BaseIsolatedScriptArgsAdapter(object):
def do_post_test_run_tasks(self):
pass
- def run_test(self):
+ def run_test(self, cwd=None):
self.parse_args()
cmd = self.generate_isolated_script_cmd()
@@ -472,9 +472,9 @@ class BaseIsolatedScriptArgsAdapter(object):
' '.join(cmd), env))
sys.stdout.flush()
if self.options.xvfb and sys.platform.startswith('linux'):
- exit_code = xvfb.run_executable(cmd, env)
+ exit_code = xvfb.run_executable(cmd, env, cwd=cwd)
else:
- exit_code = test_env.run_command(cmd, env=env, log=False)
+ exit_code = test_env.run_command(cmd, env=env, cwd=cwd, log=False)
print('Command returned exit code %d' % exit_code)
sys.stdout.flush()
self.do_post_test_run_tasks()