Skip to content

Commit

Permalink
remove install changes from run_tc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRyanSmith committed May 2, 2022
1 parent 31d5b75 commit 894e5bd
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions tools/ci/run_tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__),
Expand Down Expand Up @@ -257,33 +257,13 @@ 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()

if args.oom_killer:
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"

Expand Down

0 comments on commit 894e5bd

Please sign in to comment.