From 894e5bdffb39e352e183ba8b4beaf98002bc386f Mon Sep 17 00:00:00 2001 From: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon, 2 May 2022 11:37:06 -0700 Subject: [PATCH] remove install changes from run_tc.py --- tools/ci/run_tc.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/tools/ci/run_tc.py b/tools/ci/run_tc.py index a1ea56a3737910e..919eab4491442fe 100755 --- a/tools/ci/run_tc.py +++ b/tools/ci/run_tc.py @@ -46,7 +46,7 @@ import zipfile sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) -from wpt.utils import get, get_download_to_descriptor, unzip # type: ignore +from wpt.utils import get_download_to_descriptor # type: ignore root = os.path.abspath( os.path.join(os.path.dirname(__file__), @@ -257,9 +257,6 @@ def setup_environment(args): assert args.channel is not None install_chrome(args.channel) - if "chromium" in args.browser: - install_chromium() - if args.xvfb: start_xvfb() @@ -267,23 +264,6 @@ def setup_environment(args): start_userspace_oom_killer() -def install_chromium(): - revisions_path = os.path.join(os.getcwd(), "tools", "wpt", "latest_chromium_revision.txt") - with open(revisions_path) as f: - revision = f.read().strip() - dest = os.path.join("/tmp") - installer_path = os.path.join("/tmp", "chrome-linux.zip") - - url = ("https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/" - f"{revision}/chrome-linux.zip") - resp = get(url) - with open(installer_path, "wb") as f: - f.write(resp.content) - with open(installer_path, "rb") as f: - unzip(f, dest) - os.remove(installer_path) - - def setup_repository(args): is_pr = os.environ.get("GITHUB_PULL_REQUEST", "false") != "false"