Skip to content

Commit 38c2413

Browse files
committed
more servo
1 parent 9ea38cc commit 38c2413

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

moz-webgpu-cts/src/shared.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ const SCOPE_DIR_FX_PRIVATE_STR: &str = "testing/web-platform/mozilla";
338338
const SCOPE_DIR_FX_PRIVATE_COMPONENTS: &[&str] = &["testing", "web-platform", "mozilla"];
339339
const SCOPE_DIR_FX_PUBLIC_STR: &str = "testing/web-platform";
340340
const SCOPE_DIR_FX_PUBLIC_COMPONENTS: &[&str] = &["testing", "web-platform"];
341+
const SCOPE_DIR_SERVO_PUBLIC_STR: &str = "tests/wpt/webgpu";
342+
const SCOPE_DIR_SERVO_PUBLIC_COMPONENTS: &[&str] = &["tests", "wpt", "webgpu"];
341343

342344
impl<'a> TestPath<'a> {
343345
pub fn from_execution_report(
@@ -403,6 +405,8 @@ impl<'a> TestPath<'a> {
403405
(TestScope::FirefoxPrivate, path)
404406
} else if let Ok(path) = rel_meta_file_path.strip_prefix(SCOPE_DIR_FX_PUBLIC_STR) {
405407
(TestScope::Public, path)
408+
} else if let Ok(path) = rel_meta_file_path.strip_prefix(SCOPE_DIR_SERVO_PUBLIC_STR) {
409+
(TestScope::Public, path)
406410
} else {
407411
return Err(err());
408412
}
@@ -492,6 +496,7 @@ impl<'a> TestPath<'a> {
492496
} = self;
493497

494498
let scope_dir = match scope {
499+
// TODO: servo
495500
TestScope::Public => SCOPE_DIR_FX_PUBLIC_COMPONENTS,
496501
TestScope::FirefoxPrivate => SCOPE_DIR_FX_PRIVATE_COMPONENTS,
497502
}

0 commit comments

Comments
 (0)