clang/win: Fix component builds after https://codereview.chromium.org/1272113002
[chromium-blink-merge.git] / blink / tools / run_layout_tests.py
blob46d8ad016d9a184e971a9ba6d047c0acc7fa74f8
1 #!/usr/bin/env python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 """Wrapper around
7 third_party/WebKit/Tools/Scripts/run-webkit-tests"""
8 import os
9 import subprocess
10 import sys
12 def main():
13 src_dir = os.path.abspath(os.path.join(sys.path[0], '..', '..'))
14 script_dir=os.path.join(src_dir, "third_party", "WebKit", "Tools",
15 "Scripts")
16 script = os.path.join(script_dir, 'run-webkit-tests')
17 cmd = [sys.executable, script] + sys.argv[1:]
18 return subprocess.call(cmd)
20 if __name__ == '__main__':
21 sys.exit(main())