Commit 8675ff20 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Make run-webkit-tests and run_layout_tests not workable.

These tools will be removed later.

Bug: 829697
Change-Id: I364447a74a1b88c72bfc161195430fd9d4c36ba8
Reviewed-on: https://chromium-review.googlesource.com/c/1256386Reviewed-by: default avatarQuinten Yearsley <qyearsley@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596083}
parent c3a68921
......@@ -5,18 +5,10 @@
"""Wrapper around
third_party/blink/tools/run_web_tests.py"""
import os
import subprocess
import sys
def main():
if __name__ == '__main__':
print '\n Please use third_party/blink/tools/run_web_tests.*. ' \
'This command will be removed.\n'
src_dir = os.path.abspath(os.path.join(sys.path[0], '..', '..'))
script_dir=os.path.join(src_dir, "third_party", "blink", "tools")
script = os.path.join(script_dir, 'run_web_tests.py')
cmd = [sys.executable, script] + sys.argv[1:]
return subprocess.call(cmd)
if __name__ == '__main__':
sys.exit(main())
sys.exit(1)
......@@ -29,8 +29,7 @@
"""Wrapper around webkitpy/layout_tests/run_webkit_tests.py"""
from webkitpy.common import add_blinkpy # pylint: disable=unused-import
from blinkpy.common import multiprocessing_bootstrap
import sys
print '\n Please use third_party/blink/tools/run_web_tests.*. This command will be removed.\n'
multiprocessing_bootstrap.run('blinkpy', 'web_tests', 'run_webkit_tests.py')
sys.exit(1)
# Required for Python to search this directory for module files
# Keep this file free of any code or import statements that could
# cause either an error to occur or a log message to be logged.
# This ensures that calling code can import initialization code from
# webkitpy before any errors or log messages due to code in this file.
# Initialization code can include things like version-checking code and
# logging configuration code.
#
# We do not execute any version-checking code or logging configuration
# code in this file so that callers can opt-in as they want. This also
# allows different callers to choose different initialization code,
# as necessary.
# Required for Python to search this directory for module files
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Add the path of blinkpy to sys.path.
You don't need to call a function to do it. You need just import this. e.g.
import webkitpy.common.add_blinkpy # pylint: disable=unused-import
or
from webkitpy.common import add_blinkpy # pylint: disable=unused-import
This is a transitional solution to handle both of blinkpy and webkitpy. We'll
remove this file when we finish moving webkitpy to blinkpy.
"""
import os
import sys
# Without abspath(), PathFinder can't find chromium_base correctly.
sys.path.append(os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..',
'blink', 'tools')))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment