[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 1 | #!/usr/bin/env python |
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 2 | # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 3 | # Use of this source code is governed by a BSD-style license that can be |
4 | # found in the LICENSE file. | ||||
5 | |||||
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 6 | """Wrapper around |
[email protected] | d8b6af8 | 2013-04-15 20:01:32 | [diff] [blame] | 7 | third_party/WebKit/Tools/Scripts/run-webkit-tests""" |
[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 8 | import os |
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 9 | import subprocess |
[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 10 | import sys |
[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 11 | |
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 12 | def main(): |
tfarina | a16e8bc | 2014-10-10 03:11:29 | [diff] [blame] | 13 | src_dir = os.path.abspath(os.path.join(sys.path[0], '..', '..')) |
[email protected] | 89b90e15 | 2010-12-18 03:40:54 | [diff] [blame] | 14 | script_dir=os.path.join(src_dir, "third_party", "WebKit", "Tools", |
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 15 | "Scripts") |
[email protected] | d8b6af8 | 2013-04-15 20:01:32 | [diff] [blame] | 16 | script = os.path.join(script_dir, 'run-webkit-tests') |
[email protected] | d97b7cd | 2013-06-19 06:08:42 | [diff] [blame] | 17 | cmd = [sys.executable, script] + sys.argv[1:] |
[email protected] | 4ecbeba6 | 2010-03-05 03:32:57 | [diff] [blame] | 18 | return subprocess.call(cmd) |
[email protected] | 67fbad1 | 2010-01-21 06:40:37 | [diff] [blame] | 19 | |
[email protected] | 9d15e38 | 2010-01-22 02:30:35 | [diff] [blame] | 20 | if __name__ == '__main__': |
[email protected] | 596e07d | 2010-03-11 01:10:45 | [diff] [blame] | 21 | sys.exit(main()) |