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

Side by Side Diff: content/test/gpu/gpu_tests/webgl_conformance_expectations.py

Issue 1850613002: Work around problems with very long file names on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | 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 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import os 4 import os
5 import platform
5 6
6 from gpu_tests.gpu_test_expectations import GpuTestExpectations 7 from gpu_tests.gpu_test_expectations import GpuTestExpectations
7 8
8 # See the GpuTestExpectations class for documentation. 9 # See the GpuTestExpectations class for documentation.
9 10
10 class WebGLConformanceExpectations(GpuTestExpectations): 11 class WebGLConformanceExpectations(GpuTestExpectations):
11 def __init__(self, conformance_path): 12 def __init__(self, conformance_path):
12 self.conformance_path = conformance_path 13 self.conformance_path = conformance_path
13 super(WebGLConformanceExpectations, self).__init__() 14 super(WebGLConformanceExpectations, self).__init__()
14 15
15 def Fail(self, pattern, condition=None, bug=None): 16 def Fail(self, pattern, condition=None, bug=None):
16 self.CheckPatternIsValid(pattern) 17 self.CheckPatternIsValid(pattern)
17 GpuTestExpectations.Fail(self, pattern, condition, bug) 18 GpuTestExpectations.Fail(self, pattern, condition, bug)
18 19
19 def Skip(self, pattern, condition=None, bug=None): 20 def Skip(self, pattern, condition=None, bug=None):
20 self.CheckPatternIsValid(pattern) 21 self.CheckPatternIsValid(pattern)
21 GpuTestExpectations.Skip(self, pattern, condition, bug) 22 GpuTestExpectations.Skip(self, pattern, condition, bug)
22 23
23 def CheckPatternIsValid(self, pattern): 24 def CheckPatternIsValid(self, pattern):
24 # Look for basic wildcards. 25 # Look for basic wildcards.
25 if not '*' in pattern: 26 if not '*' in pattern:
26 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern)) 27 full_path = os.path.normpath(os.path.join(self.conformance_path, pattern))
27 if not os.path.exists(full_path): 28 if not os.path.exists(full_path):
28 raise Exception('The WebGL conformance test path specified in' + 29 err_msg = ('The WebGL conformance test path specified in ' +
29 'expectation does not exist: ' + full_path) 30 'expectation does not exist: ' + full_path)
31 # Seeing problems on some Windows bots where the full path doesn't
32 # seem to exist if it's over 255 characters. http://crbug.com/599333
33 if platform.system().startswith('Windows') and len(full_path) > 255:
34 print err_msg
35 else:
36 raise Exception(err_msg)
30 37
31 def SetExpectations(self): 38 def SetExpectations(self):
32 # Fails on all platforms 39 # Fails on all platforms
33 self.Fail('deqp/data/gles2/shaders/functions.html', 40 self.Fail('deqp/data/gles2/shaders/functions.html',
34 bug=478572) 41 bug=478572)
35 self.Fail('deqp/data/gles2/shaders/scoping.html', 42 self.Fail('deqp/data/gles2/shaders/scoping.html',
36 bug=478572) 43 bug=478572)
37 self.Fail('conformance/extensions/ext-sRGB.html', 44 self.Fail('conformance/extensions/ext-sRGB.html',
38 bug=540900) 45 bug=540900)
39 46
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 self.Fail('conformance/textures/misc/texture-npot.html', 430 self.Fail('conformance/textures/misc/texture-npot.html',
424 ['chromeos', ('intel', 0xa011)], bug=375554) 431 ['chromeos', ('intel', 0xa011)], bug=375554)
425 self.Fail('conformance/textures/misc/texture-npot-video.html', 432 self.Fail('conformance/textures/misc/texture-npot-video.html',
426 ['chromeos', ('intel', 0xa011)], bug=375554) 433 ['chromeos', ('intel', 0xa011)], bug=375554)
427 self.Fail('conformance/textures/misc/texture-size.html', 434 self.Fail('conformance/textures/misc/texture-size.html',
428 ['chromeos', ('intel', 0xa011)], bug=375554) 435 ['chromeos', ('intel', 0xa011)], bug=375554)
429 self.Fail('conformance/uniforms/gl-uniform-arrays.html', 436 self.Fail('conformance/uniforms/gl-uniform-arrays.html',
430 ['chromeos', ('intel', 0xa011)], bug=375554) 437 ['chromeos', ('intel', 0xa011)], bug=375554)
431 self.Skip('conformance/uniforms/uniform-default-values.html', 438 self.Skip('conformance/uniforms/uniform-default-values.html',
432 ['chromeos', ('intel', 0xa011)], bug=375554) 439 ['chromeos', ('intel', 0xa011)], bug=375554)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698