Revert of Move NumberOfPlanesForGpuMemoryBufferFormat to gfx (patchset #4 id:120001...
[chromium-blink-merge.git] / tools / telemetry / run_tests
blobdc050435a5f48db40f357ad8f33788392b45d46a
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', 'testing',
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))