Change base directory for CTS runner, part 1

Changes the test page to expect files to be served from BUILD_DIR
to BUILD_DIR/gen/third_party/dawn. Serving only the subdirectory
shaves multiple seconds off of harness startup in local builds.

Bug: chromium:1338672
Change-Id: I29927e8d0928874fe780f9b15910b0d2eed97833
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94580
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@google.com>
This commit is contained in:
Austin Eng 2022-06-23 21:45:18 +00:00 committed by Dawn LUCI CQ
parent ff2d2d808e
commit 6241cf9632
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ limitations under the License. -->
<meta charset=utf-8>
<link rel=help href='https://gpuweb.github.io/gpuweb/'>
<!-- Temporarily try to |setBaseResourcePath| from two paths as we migrate the base static server dir -->
<script type=module>
import { setBaseResourcePath } from '/third_party/webgpu-cts/src/common/framework/resources.js';
setBaseResourcePath('/third_party/webgpu-cts/resources');
</script>
<script type=module>
import { setBaseResourcePath } from '/gen/third_party/dawn/third_party/webgpu-cts/src/common/framework/resources.js';
setBaseResourcePath('/gen/third_party/dawn/third_party/webgpu-cts/resources');