Reland the ULONG -> SIZE_T change from 317177
[chromium-blink-merge.git] / tools / telemetry / run_tests
blobe420b66f9240d22960b377b5066d3b7bf6879d2f
1 #!/usr/bin/env python
2 # Copyright (c) 2012 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 import os
7 import sys
8 import subprocess
11 if __name__ == '__main__':
12 telemetry_dir = os.path.dirname(os.path.realpath(__file__))
14 env = os.environ.copy()
15 if 'PYTHONPATH' in env:
16 env['PYTHONPATH'] = env['PYTHONPATH'] + os.pathsep + telemetry_dir
17 else:
18 env['PYTHONPATH'] = telemetry_dir
20 path_to_run_tests = os.path.join(telemetry_dir, 'telemetry', 'unittest_util',
21 'run_tests.py')
22 argv = ['--top-level-dir', telemetry_dir] + sys.argv[1:]
23 sys.exit(subprocess.call([sys.executable, path_to_run_tests] + argv, env=env))