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

Side by Side Diff: tools/dm_flags.py

Issue 1017283002: temporarily stifle Math test on TSAN bot (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: wrong bot Created 5 years, 9 months 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 | « tools/dm_flags.json ('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 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 args.append('--blacklist') 78 args.append('--blacklist')
79 args.extend(blacklist) 79 args.extend(blacklist)
80 80
81 match = [] 81 match = []
82 if 'Alex' in bot: # skia:2793 82 if 'Alex' in bot: # skia:2793
83 # This machine looks to be running out of heap. 83 # This machine looks to be running out of heap.
84 # Running with fewer threads may help. 84 # Running with fewer threads may help.
85 args.extend(['--threads', '1']) 85 args.extend(['--threads', '1'])
86 if 'Valgrind' in bot: # skia:3021 86 if 'Valgrind' in bot: # skia:3021
87 match.append('~Threaded') 87 match.append('~Threaded')
88 if 'TSAN' in bot: # skia:3562
89 match.append('~Math')
90
88 if 'Xoom' in bot or 'GalaxyS3' in bot: # skia:1699 91 if 'Xoom' in bot or 'GalaxyS3' in bot: # skia:1699
89 match.append('~WritePixels') 92 match.append('~WritePixels')
90 93
91 # skia:3249: these images flakily don't decode on Android. 94 # skia:3249: these images flakily don't decode on Android.
92 if 'Android' in bot: 95 if 'Android' in bot:
93 match.append('~tabl_mozilla_0') 96 match.append('~tabl_mozilla_0')
94 match.append('~desk_yahoonews_0') 97 match.append('~desk_yahoonews_0')
95 98
96 if 'NexusPlayer' in bot: 99 if 'NexusPlayer' in bot:
97 match.append('~ResourceCache') 100 match.append('~ResourceCache')
(...skipping 16 matching lines...) Expand all
114 def self_test(): 117 def self_test():
115 import coverage # This way the bots don't need coverage.py to be installed. 118 import coverage # This way the bots don't need coverage.py to be installed.
116 args = {} 119 args = {}
117 cases = [ 120 cases = [
118 'Test-Android-GalaxyS3-Mali400-Arm7-Debug', 121 'Test-Android-GalaxyS3-Mali400-Arm7-Debug',
119 'Test-Android-Nexus7-Tegra3-Arm7-Release', 122 'Test-Android-Nexus7-Tegra3-Arm7-Release',
120 'Test-Android-NexusPlayer-PowerVR-x86-Release', 123 'Test-Android-NexusPlayer-PowerVR-x86-Release',
121 'Test-Android-Xoom-Tegra2-Arm7-Release', 124 'Test-Android-Xoom-Tegra2-Arm7-Release',
122 'Test-ChromeOS-Alex-GMA3150-x86-Debug', 125 'Test-ChromeOS-Alex-GMA3150-x86-Debug',
123 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU', 126 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind_GPU',
127 'Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-TSAN',
124 'Test-Ubuntu14-GCE-NoGPU-x86_64-Release-Valgrind_CPU', 128 'Test-Ubuntu14-GCE-NoGPU-x86_64-Release-Valgrind_CPU',
125 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE', 129 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE',
126 ] 130 ]
127 131
128 cov = coverage.coverage() 132 cov = coverage.coverage()
129 cov.start() 133 cov.start()
130 for case in cases: 134 for case in cases:
131 args[case] = get_args(case) 135 args[case] = get_args(case)
132 cov.stop() 136 cov.stop()
133 137
(...skipping 13 matching lines...) Expand all
147 if len(sys.argv) == 2 and sys.argv[1] == 'test': 151 if len(sys.argv) == 2 and sys.argv[1] == 'test':
148 self_test() 152 self_test()
149 sys.exit(0) 153 sys.exit(0)
150 154
151 if len(sys.argv) != 3: 155 if len(sys.argv) != 3:
152 print usage 156 print usage
153 sys.exit(1) 157 sys.exit(1)
154 158
155 with open(sys.argv[1], 'w') as out: 159 with open(sys.argv[1], 'w') as out:
156 json.dump(get_args(sys.argv[2]), out) 160 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698