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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 args.append('--blacklist') | 70 args.append('--blacklist') |
71 args.extend(blacklist) | 71 args.extend(blacklist) |
72 | 72 |
73 match = [] | 73 match = [] |
74 if 'Alex' in bot: # skia:2793 | 74 if 'Alex' in bot: # skia:2793 |
75 # This machine looks to be running out of heap. | 75 # This machine looks to be running out of heap. |
76 # Running with fewer threads may help. | 76 # Running with fewer threads may help. |
77 args.extend(['--threads', '1']) | 77 args.extend(['--threads', '1']) |
78 if 'Valgrind' in bot: # skia:3021 | 78 if 'Valgrind' in bot: # skia:3021 |
79 match.append('~Threaded') | 79 match.append('~Threaded') |
80 if 'Xoom' in bot: # skia:1699 | 80 if 'Xoom' in bot or 'GalaxyS3' in bot: # skia:1699 |
81 match.append('~WritePixels') | 81 match.append('~WritePixels') |
82 | 82 |
83 # skia:3249: these images flakily don't decode on Android. | 83 # skia:3249: these images flakily don't decode on Android. |
84 if 'Android' in bot: | 84 if 'Android' in bot: |
85 match.append('~tabl_mozilla_0') | 85 match.append('~tabl_mozilla_0') |
86 match.append('~desk_yahoonews_0') | 86 match.append('~desk_yahoonews_0') |
87 | 87 |
88 if 'NexusPlayer' in bot: | 88 if 'NexusPlayer' in bot: |
89 match.append('~ResourceCache') | 89 match.append('~ResourceCache') |
90 | 90 |
91 if match: | 91 if match: |
92 args.append('--match') | 92 args.append('--match') |
93 args.extend(match) | 93 args.extend(match) |
94 | 94 |
95 # Though their GPUs are interesting, these don't test anything on | 95 # Though their GPUs are interesting, these don't test anything on |
96 # the CPU that other ARMv7+NEON bots don't test faster (N5). | 96 # the CPU that other ARMv7+NEON bots don't test faster (N5). |
97 if ('Nexus10' in bot or | 97 if ('Nexus10' in bot or |
98 'Nexus7' in bot or | 98 'Nexus7' in bot or |
99 'GalaxyS3' in bot or | 99 'GalaxyS3' in bot or |
100 'GalaxyS4' in bot): | 100 'GalaxyS4' in bot): |
101 args.append('--nocpu') | 101 args.append('--nocpu') |
102 return args | 102 return args |
103 cov_end = lineno() # Don't care about code coverage past here. | 103 cov_end = lineno() # Don't care about code coverage past here. |
104 | 104 |
105 | 105 |
106 def self_test(): | 106 def self_test(): |
107 import coverage # This way the bots don't need coverage.py to be installed. | 107 import coverage # This way the bots don't need coverage.py to be installed. |
108 args = {} | 108 args = {} |
109 cases = [ | 109 cases = [ |
| 110 'Test-Android-GalaxyS3-Mali400-Arm7-Debug', |
110 'Test-Android-Nexus7-Tegra3-Arm7-Release', | 111 'Test-Android-Nexus7-Tegra3-Arm7-Release', |
111 'Test-Android-NexusPlayer-PowerVR-x86-Release', | 112 'Test-Android-NexusPlayer-PowerVR-x86-Release', |
112 'Test-Android-Xoom-Tegra2-Arm7-Release', | 113 'Test-Android-Xoom-Tegra2-Arm7-Release', |
113 'Test-ChromeOS-Alex-GMA3150-x86-Debug', | 114 'Test-ChromeOS-Alex-GMA3150-x86-Debug', |
114 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU', | 115 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU', |
115 'Test-Ubuntu14-GCE-NoGPU-x86_64-Release-Valgrind_CPU', | 116 'Test-Ubuntu14-GCE-NoGPU-x86_64-Release-Valgrind_CPU', |
116 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE', | 117 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE', |
117 ] | 118 ] |
118 | 119 |
119 cov = coverage.coverage() | 120 cov = coverage.coverage() |
(...skipping 18 matching lines...) Expand all Loading... |
138 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 139 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
139 self_test() | 140 self_test() |
140 sys.exit(0) | 141 sys.exit(0) |
141 | 142 |
142 if len(sys.argv) != 3: | 143 if len(sys.argv) != 3: |
143 print usage | 144 print usage |
144 sys.exit(1) | 145 sys.exit(1) |
145 | 146 |
146 with open(sys.argv[1], 'w') as out: | 147 with open(sys.argv[1], 'w') as out: |
147 json.dump(get_args(sys.argv[2]), out) | 148 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |