| 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(' ')) | |
| 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 blacklist.extend('_ subset rgb24largepal.bmp'.split(' ')) | |
| 68 blacklist.extend('_ subset pal8os2v2-16.bmp'.split(' ')) | |
| 69 blacklist.extend('_ subset pal8oversizepal.bmp'.split(' ')) | |
| 70 | |
| 71 # New ico files that fail on SkImageDecoder | |
| 72 blacklist.extend('_ image Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | |
| 73 | |
| 74 # Leon doesn't care about this, so why run it? | 54 # Leon doesn't care about this, so why run it? |
| 75 if 'Win' in bot: | 55 if 'Win' in bot: |
| 76 blacklist.extend('_ image _'.split(' ')) | 56 blacklist.extend('_ image _'.split(' ')) |
| 77 blacklist.extend('_ subset _'.split(' ')) | 57 blacklist.extend('_ subset _'.split(' ')) |
| 78 | 58 |
| 79 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test | 59 # Certain gm's on win7 gpu and pdf are never finishing and keeping the test |
| 80 # running forever | 60 # running forever |
| 81 if 'Win7' in bot: | 61 if 'Win7' in bot: |
| 82 blacklist.extend('msaa16 gm colorwheelnative'.split(' ')) | 62 blacklist.extend('msaa16 gm colorwheelnative'.split(' ')) |
| 83 blacklist.extend('pdf gm fontmgr_iter_factory'.split(' ')) | 63 blacklist.extend('pdf gm fontmgr_iter_factory'.split(' ')) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 157 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 178 self_test() | 158 self_test() |
| 179 sys.exit(0) | 159 sys.exit(0) |
| 180 | 160 |
| 181 if len(sys.argv) != 3: | 161 if len(sys.argv) != 3: |
| 182 print usage | 162 print usage |
| 183 sys.exit(1) | 163 sys.exit(1) |
| 184 | 164 |
| 185 with open(sys.argv[1], 'w') as out: | 165 with open(sys.argv[1], 'w') as out: |
| 186 json.dump(get_args(sys.argv[2]), out) | 166 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |