summaryrefslogtreecommitdiff
path: root/chromium/testing/scripts/common.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-03 13:42:47 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-05-15 10:27:51 +0000
commit8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (patch)
treed29d987c4d7b173cf853279b79a51598f104b403 /chromium/testing/scripts/common.py
parent830c9e163d31a9180fadca926b3e1d7dfffb5021 (diff)
downloadqtwebengine-chromium-8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec.tar.gz
BASELINE: Update Chromium to 66.0.3359.156
Change-Id: I0c9831ad39911a086b6377b16f995ad75a51e441 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/testing/scripts/common.py')
-rw-r--r--chromium/testing/scripts/common.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/chromium/testing/scripts/common.py b/chromium/testing/scripts/common.py
index d4364525f7d..e68537f3e5d 100644
--- a/chromium/testing/scripts/common.py
+++ b/chromium/testing/scripts/common.py
@@ -73,24 +73,6 @@ def run_command(argv, env=None, cwd=None):
return rc
-def run_command_with_output(argv, stdoutfile, env=None, cwd=None):
- """ Run command and stream its stdout/stderr to the console & |stdoutfile|.
- """
- print 'Running %r in %r (env: %r)' % (argv, cwd, env)
- assert stdoutfile
- with io.open(stdoutfile, 'w') as writer, io.open(stdoutfile, 'r', 1) as \
- reader:
- process = subprocess.Popen(argv, env=env, cwd=cwd, stdout=writer,
- stderr=subprocess.STDOUT)
- while process.poll() is None:
- sys.stdout.write(reader.read())
- time.sleep(0.1)
- # Read the remaining
- sys.stdout.write(reader.read())
- print 'Command %r returned exit code %d' % (argv, process.returncode)
- return process.returncode
-
-
def run_runtest(cmd_args, runtest_args):
env = os.environ.copy()
env['CHROME_HEADLESS'] = '1'