Skip to content

Commit be8967c

Browse files
feat: support disabled strings properly
- Parse non-`true` strings and treat `@False` as specified-but-not-actually-disabled. - Accept conditional values for `disabled`.
1 parent a9261c0 commit be8967c

3 files changed

Lines changed: 248 additions & 62 deletions

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,15 @@ fn run(cli: Cli) -> ExitCode {
547547
} = test;
548548

549549
let TestProps {
550-
is_disabled,
550+
disabled,
551551
expected,
552552
implementation_status: _,
553553
tags: _,
554554
} = properties;
555555

556556
let test_name = Arc::new(test_name);
557557

558-
if is_disabled {
558+
if disabled.is_some_and(|d| d.iter().any(|(_, val)| val.is_disabled())) {
559559
analysis.for_each_platform_mut(|analysis| {
560560
analysis
561561
.tests_with_disabled_or_skip
@@ -672,13 +672,13 @@ fn run(cli: Cli) -> ExitCode {
672672

673673
let Subtest { properties } = subtest;
674674
let TestProps {
675-
is_disabled,
675+
disabled,
676676
expected,
677677
implementation_status: _,
678678
tags: _,
679679
} = properties;
680680

681-
if is_disabled {
681+
if disabled.is_some_and(|d| d.iter().any(|(_, val)| val.is_disabled())) {
682682
analysis
683683
.windows
684684
.tests_with_disabled_or_skip

0 commit comments

Comments
 (0)