Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 usage = ''' | 3 usage = ''' |
| 4 Write extra flags to outfile for DM based on the bot name: | 4 Write extra flags to outfile for DM based on the bot name: |
| 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release | 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release |
| 6 Or run self-tests: | 6 Or run self-tests: |
| 7 $ python dm_flags.py test | 7 $ python dm_flags.py test |
| 8 ''' | 8 ''' |
| 9 | 9 |
| 10 import inspect | 10 import inspect |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 if 'ANGLE' in bot: | 44 if 'ANGLE' in bot: |
| 45 configs.append('angle') | 45 configs.append('angle') |
| 46 args.append('--config') | 46 args.append('--config') |
| 47 args.extend(configs) | 47 args.extend(configs) |
| 48 | 48 |
| 49 blacklist = [] | 49 blacklist = [] |
| 50 # This image is too large to be a texture for many GPUs. | 50 # This image is too large to be a texture for many GPUs. |
| 51 blacklist.extend('gpu _ PANO_20121023_214540.jpg'.split(' ')) | 51 blacklist.extend('gpu _ PANO_20121023_214540.jpg'.split(' ')) |
| 52 blacklist.extend('msaa _ PANO_20121023_214540.jpg'.split(' ')) | 52 blacklist.extend('msaa _ PANO_20121023_214540.jpg'.split(' ')) |
| 53 | 53 |
| 54 # Several of the newest version bmps fail on SkImageDecoder | |
| 55 blacklist.extend('_ image pal8os2v2.bmp'.split(' ')) | |
|
scroggo
2015/03/24 15:24:42
Do we also need to blacklist "subset" for these im
msarett
2015/03/24 16:55:07
Most of them "fail" by creating an image that does
| |
| 56 blacklist.extend('_ image pal8v4.bmp'.split(' ')) | |
| 57 blacklist.extend('_ image pal8v5.bmp'.split(' ')) | |
| 58 blacklist.extend('_ image rgb16-565.bmp'.split(' ')) | |
| 59 blacklist.extend('_ image rgb16-565pal.bmp'.split(' ')) | |
| 60 blacklist.extend('_ image rgb32-111110.bmp'.split(' ')) | |
| 61 blacklist.extend('_ image rgb32bf.bmp'.split(' ')) | |
| 62 blacklist.extend('_ image rgba32.bmp'.split(' ')) | |
| 63 blacklist.extend('_ image rgba32abf.bmp'.split(' ')) | |
| 64 blacklist.extend('_ image rgb24largepal.bmp'.split(' ')) | |
| 65 blacklist.extend('_ image pal8os2v2-16.bmp'.split(' ')) | |
| 66 blacklist.extend('_ image pal8oversizepal.bmp'.split(' ')) | |
| 67 | |
| 68 # New ico files that fail on SkImageDecoder | |
| 69 blacklist.extend('_ image Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | |
| 70 | |
| 54 # Leon doesn't care about this, so why run it? | 71 # Leon doesn't care about this, so why run it? |
| 55 if 'Win' in bot: | 72 if 'Win' in bot: |
| 56 blacklist.extend('_ image _'.split(' ')) | 73 blacklist.extend('_ image _'.split(' ')) |
| 57 blacklist.extend('_ subset _'.split(' ')) | 74 blacklist.extend('_ subset _'.split(' ')) |
| 58 | 75 |
| 59 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 76 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
| 60 # running forever | 77 # running forever |
| 61 if 'Win7' in bot: | 78 if 'Win7' in bot: |
| 62 blacklist.extend('msaa16 gm colorwheelnative'.split(' ')) | 79 blacklist.extend('msaa16 gm colorwheelnative'.split(' ')) |
| 63 blacklist.extend('pdf gm fontmgr_iter_factory'.split(' ')) | 80 blacklist.extend('pdf gm fontmgr_iter_factory'.split(' ')) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 174 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 158 self_test() | 175 self_test() |
| 159 sys.exit(0) | 176 sys.exit(0) |
| 160 | 177 |
| 161 if len(sys.argv) != 3: | 178 if len(sys.argv) != 3: |
| 162 print usage | 179 print usage |
| 163 sys.exit(1) | 180 sys.exit(1) |
| 164 | 181 |
| 165 with open(sys.argv[1], 'w') as out: | 182 with open(sys.argv[1], 'w') as out: |
| 166 json.dump(get_args(sys.argv[2]), out) | 183 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |