Override timeout in WebGPU CTS to always be "long" (#31952)

* Long webgpu timeout

* Update expectations

* reupdate expectations 2

* re

* update-webgpu

* Update testing_commands.py with better comment
This commit is contained in:
Samson 2024-04-01 10:27:46 +02:00 committed by GitHub
parent 2f5a4354e7
commit 8c25336e9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6500 additions and 2506 deletions

View file

@ -741,6 +741,10 @@ tests/wpt/mozilla/tests for Servo-only tests""" % reference_path)
filedata = file.read()
# files are mounted differently
filedata = filedata.replace('src=/webgpu/common/runtime/wpt.js', 'src=../webgpu/common/runtime/wpt.js')
# Mark all webgpu tests as long to increase their timeouts. This is needed due to wgpu's slowness.
# TODO: replace this with more fine grained solution: https://github.com/servo/servo/issues/30999
filedata = filedata.replace('<meta charset=utf-8>',
'<meta charset=utf-8>\n<meta name="timeout" content="long">')
# Write the file out again
with open(cts_html, 'w') as file:
file.write(filedata)