mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
Auto merge of #27402 - kunalmohan:webgpu-cts, r=jdm
Add a copy of WebGPU CTS to wpt. <!-- Please describe your changes on the following line: --> The test suite is generated from `glsl-dependent` branch in https://github.com/gpuweb/cts We already have 6/44 tests passing and a number of subtests in other tests also pass. r?@jdm cc @kvark --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #27395 (GitHub issue number if applicable) <!-- Either: --> - [X] These changes do not require tests because we don't have tests for tests. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
9fbdbddb0c
107 changed files with 28298 additions and 5 deletions
|
@ -552,6 +552,8 @@ class MachCommands(CommandBase):
|
|||
elif tracker_api.endswith('/'):
|
||||
tracker_api = tracker_api[0:-1]
|
||||
|
||||
if 'test' not in failure:
|
||||
continue
|
||||
query = urllib.parse.quote(failure['test'], safe='')
|
||||
request = urllib.request.Request("%s/query.py?name=%s" % (tracker_api, query))
|
||||
search = urllib.request.urlopen(request)
|
||||
|
@ -569,9 +571,17 @@ class MachCommands(CommandBase):
|
|||
is_intermittent = data['total_count'] > 0
|
||||
|
||||
if is_intermittent:
|
||||
intermittents.append(failure["output"])
|
||||
if 'output' in failure:
|
||||
intermittents.append(failure["output"])
|
||||
else:
|
||||
intermittents.append("%s [expected %s] %s \n"
|
||||
% (failure["status"], failure["expected"], failure['test']))
|
||||
else:
|
||||
actual_failures.append(failure["output"])
|
||||
if 'output' in failure:
|
||||
actual_failures.append(failure["output"])
|
||||
else:
|
||||
actual_failures.append("%s [expected %s] %s \n"
|
||||
% (failure["status"], failure["expected"], failure['test']))
|
||||
|
||||
def format(outputs, description, file=sys.stdout):
|
||||
formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue