Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: content/test/ct/run_ct_dm.py

Issue 1493913005: [CT+DM] Change location of SKPs dir to outside checkouts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/ct/OWNERS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2015 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This script is meant to be run on a Swarming bot.""" 6 """This script is meant to be run on a Swarming bot."""
7 7
8 import argparse 8 import argparse
9 import os 9 import os
10 import subprocess 10 import subprocess
11 import sys 11 import sys
12 12
13 13
14 PARENT_DIR = os.path.dirname(os.path.realpath(__file__)) 14 PARENT_DIR = os.path.dirname(os.path.realpath(__file__))
15 15
16 SKIA_SRC_DIR = os.path.normpath(os.path.join( 16 REPOS_BASE_DIR = os.path.normpath(os.path.join(
17 PARENT_DIR, os.pardir, os.pardir, os.pardir, os.pardir, 'skia')) 17 PARENT_DIR, os.pardir, os.pardir, os.pardir, os.pardir))
18
19 SKIA_SRC_DIR = os.path.join(REPOS_BASE_DIR, 'skia')
18 20
19 21
20 def main(): 22 def main():
21 parser = argparse.ArgumentParser() 23 parser = argparse.ArgumentParser()
22 parser.add_argument('-s', '--slave_num', required=True, type=int, 24 parser.add_argument('-s', '--slave_num', required=True, type=int,
23 help='The slave num of this CT run.') 25 help='The slave num of this CT run.')
24 args = parser.parse_args() 26 args = parser.parse_args()
25 27
26 dm_path = os.path.join(SKIA_SRC_DIR, 'out', 'Debug', 'dm') 28 dm_path = os.path.join(SKIA_SRC_DIR, 'out', 'Debug', 'dm')
27 skps_dir = os.path.join(PARENT_DIR, 'slave%d' % args.slave_num, 'skps') 29 skps_dir = os.path.join(REPOS_BASE_DIR, 'skps', 'slave%d' % args.slave_num)
28 resource_path = os.path.join(SKIA_SRC_DIR, 'resources') 30 resource_path = os.path.join(SKIA_SRC_DIR, 'resources')
29 31
30 # TODO(rmistry): Double check the below DM configuration with mtklein@. We 32 # TODO(rmistry): Double check the below DM configuration with mtklein@. We
31 # need a basic configuration that can help catch bugs like the ones listed in 33 # need a basic configuration that can help catch bugs like the ones listed in
32 # skbug.com/4416 34 # skbug.com/4416
33 cmd = [ 35 cmd = [
34 dm_path, 36 dm_path,
35 '--src', 'skp', 37 '--src', 'skp',
36 '--skps', skps_dir, 38 '--skps', skps_dir,
37 '--resourcePath', resource_path, 39 '--resourcePath', resource_path,
38 '--config', '8888', 40 '--config', '8888',
39 '--verbose', 41 '--verbose',
40 ] 42 ]
41 return subprocess.call(cmd) 43 return subprocess.call(cmd)
42 44
43 45
44 if __name__ == '__main__': 46 if __name__ == '__main__':
45 sys.exit(main()) 47 sys.exit(main())
OLDNEW
« no previous file with comments | « content/test/ct/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698