Skip to content

Commit

Permalink
Use mirror for syncing blink web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-ac committed Sep 13, 2024
1 parent e874ab2 commit 1cffb73
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/python/other-bots/chromium-tests-syncer/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,12 @@ def main():
shell.create_directory(crash_testcases_directory)
unpack_crash_testcases(crash_testcases_directory)

# Sync web tests.
logs.info('Syncing web tests.')
src_directory = os.path.join(tests_directory, 'src')
gclient_file_path = os.path.join(tests_directory, '.gclient')
if not os.path.exists(gclient_file_path):
subprocess.check_call(
['fetch', '--no-history', 'chromium', '--nosvn=True'],
cwd=tests_directory)
if os.path.exists(src_directory):
subprocess.check_call(['gclient', 'revert'], cwd=src_directory)
subprocess.check_call(['git', 'pull'], cwd=src_directory)
subprocess.check_call(['gclient', 'sync'], cwd=src_directory)
else:
raise Exception('Unable to checkout web tests.')
# FIXME: Find a way to rename LayoutTests to web_tests without breaking
# compatibility with older testcases.
clone_git_repository(
tests_directory, 'LayoutTests',
'https://chromium.googlesource.com/chromium/src/third_party/blink/web_tests'
)

clone_git_repository(tests_directory, 'v8',
'https://chromium.googlesource.com/v8/v8')
Expand Down Expand Up @@ -286,11 +278,6 @@ def main():
'spidermonkey')
create_symbolic_link(tests_directory, 'ChakraCore/test', 'chakra')

# FIXME: Find a way to rename LayoutTests to web_tests without breaking
# compatibility with older testcases.
create_symbolic_link(tests_directory, 'src/third_party/blink/web_tests',
'LayoutTests')

subprocess.check_call(
[
'zip',
Expand Down

0 comments on commit 1cffb73

Please sign in to comment.