Skip to content

Commit ce4cd4c

Browse files
committed
fixup: chore: skip unity shader errors on webgl smoke test
1 parent 78cf31e commit ce4cd4c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/smoke-test-webgl.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,20 @@
2424
appDir = os.path.join(scriptDir, '..', 'samples',
2525
'artifacts', 'builds', 'WebGL')
2626

27+
ignoreRegex = '"exception":{"values":\[{"type":"(' + '|'.join(
28+
['The resource [^ ]+ could not be loaded from the resource file!', 'GL.End requires material.SetPass before!']) + ')"'
29+
2730

2831
class RequestVerifier:
2932
__requests = []
3033
__testNumber = 0
3134

3235
def Capture(self, info, body):
33-
if re.match('"exception":{"values":[{"type":"The resource [^ ]+ could not be loaded from the resource file!"', body):
36+
match = re.search(ignoreRegex, body)
37+
if match:
3438
print(
35-
"TEST: Skipping the received HTTP Request because it's an unrelated unity bug:\n{}".format(body))
39+
"TEST: Skipping the received HTTP Request because it's an unrelated unity bug:\n{}".format(match.group(0)))
40+
return
3641

3742
print("TEST: Received HTTP Request #{} = {}\n{}".format(
3843
len(self.__requests), info, body), flush=True)

0 commit comments

Comments
 (0)