From 3fa05701141a213bfcd75d720b8abe2c399d99b6 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 9 May 2024 10:20:21 -0400 Subject: [PATCH] fixup! Add servo as browser option Re-flow doc. commentary for `read_files_at`. --- moz-webgpu-cts/src/main.rs | 4 ++-- moz-webgpu-cts/src/shared.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/moz-webgpu-cts/src/main.rs b/moz-webgpu-cts/src/main.rs index 272e4a5..0225630 100644 --- a/moz-webgpu-cts/src/main.rs +++ b/moz-webgpu-cts/src/main.rs @@ -1425,8 +1425,8 @@ fn render_metadata_parse_errors<'a>( } /// Returns a "naturally" sorted list of files found by searching for `glob_pattern` in `base`. -/// `checkout` is stripped as a prefix from the absolute paths recorded into `log` entries -/// emitted by this function. +/// `checkout` is stripped as a prefix from the absolute paths recorded into `log` entries emitted +/// by this function. /// /// # Returns /// diff --git a/moz-webgpu-cts/src/shared.rs b/moz-webgpu-cts/src/shared.rs index b19ba61..c247539 100644 --- a/moz-webgpu-cts/src/shared.rs +++ b/moz-webgpu-cts/src/shared.rs @@ -615,11 +615,15 @@ impl<'a> TestPath<'a> { scope, } = self; - let scope_dir = match (scope.browser, scope.visibility) { + let TestScope { + browser, + visibility, + } = scope; + let scope_dir = match (browser, visibility) { (Browser::Firefox, TestVisibility::Public) => SCOPE_DIR_FX_PUBLIC_COMPONENTS, (Browser::Firefox, TestVisibility::Private) => SCOPE_DIR_FX_PRIVATE_COMPONENTS, (Browser::Servo, TestVisibility::Public) => SCOPE_DIR_SERVO_PUBLIC_COMPONENTS, - (Browser::Servo, _) => todo!(), + (Browser::Servo, TestVisibility::Private) => todo!(), } .iter() .chain(&["meta"])