OLD | NEW |
1 # | 1 # |
2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
9 | 9 |
10 usage = ''' | 10 usage = ''' |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 # Drawing SKPs or images into GPU canvases is a New Thing. | 92 # Drawing SKPs or images into GPU canvases is a New Thing. |
93 # It seems like we're running out of RAM on some Android bots, so start off | 93 # It seems like we're running out of RAM on some Android bots, so start off |
94 # with a very wide blacklist disabling all these tests on all Android bots. | 94 # with a very wide blacklist disabling all these tests on all Android bots. |
95 if 'Android' in bot: # skia:3255 | 95 if 'Android' in bot: # skia:3255 |
96 blacklist.extend('gpu skp _ gpu image _ gpu subset _'.split(' ')) | 96 blacklist.extend('gpu skp _ gpu image _ gpu subset _'.split(' ')) |
97 blacklist.extend('msaa skp _ msaa image _ gpu subset _'.split(' ')) | 97 blacklist.extend('msaa skp _ msaa image _ gpu subset _'.split(' ')) |
98 | 98 |
99 if 'Valgrind' in bot: | 99 if 'Valgrind' in bot: |
100 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 | 100 # PDF + .webp -> jumps depending on uninitialized memory. skia:3505 |
101 blacklist.extend('pdf _ .webp'.split(' ')) | 101 blacklist.extend('pdf _ .webp'.split(' ')) |
102 # These both take 18+ hours to run. | 102 # These take 18+ hours to run. |
103 blacklist.extend('pdf gm fontmgr_iter'.split(' ')) | 103 blacklist.extend('pdf gm fontmgr_iter'.split(' ')) |
104 blacklist.extend('pdf _ PANO_20121023_214540.jpg'.split(' ')) | 104 blacklist.extend('pdf _ PANO_20121023_214540.jpg'.split(' ')) |
| 105 blacklist.extend('pdf skp tabl_worldjournal.skp'.split(' ')) |
105 if 'Valgrind_GPU' in bot: | 106 if 'Valgrind_GPU' in bot: |
106 args.append('--nocpu') | 107 args.append('--nocpu') |
107 elif 'Valgrind_CPU' in bot: | 108 elif 'Valgrind_CPU' in bot: |
108 args.append('--nogpu') | 109 args.append('--nogpu') |
109 | 110 |
110 if blacklist: | 111 if blacklist: |
111 args.append('--blacklist') | 112 args.append('--blacklist') |
112 args.extend(blacklist) | 113 args.extend(blacklist) |
113 | 114 |
114 match = [] | 115 match = [] |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 185 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
185 self_test() | 186 self_test() |
186 sys.exit(0) | 187 sys.exit(0) |
187 | 188 |
188 if len(sys.argv) != 3: | 189 if len(sys.argv) != 3: |
189 print usage | 190 print usage |
190 sys.exit(1) | 191 sys.exit(1) |
191 | 192 |
192 with open(sys.argv[1], 'w') as out: | 193 with open(sys.argv[1], 'w') as out: |
193 json.dump(get_args(sys.argv[2]), out) | 194 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |