Skip to content

Commit dac8b9f

Browse files
Merge pull request #62 from ErichDonGubler/triage-fixups
Fix up `triage` a bit
2 parents 739b4b1 + 8e47368 commit dac8b9f

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,16 @@ fn run(cli: Cli) -> ExitCode {
753753
"from metadata files, analyzing results…"
754754
));
755755

756+
type TestSet = BTreeSet<Arc<SectionHeader>>;
757+
type SubtestByTestSet = BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>;
758+
756759
#[derive(Clone, Debug, Default)]
757760
struct PerPlatformAnalysis {
758-
tests_with_runner_errors: BTreeSet<Arc<SectionHeader>>,
759-
tests_with_disabled_or_skip: BTreeSet<Arc<SectionHeader>>,
760-
tests_with_crashes: BTreeSet<Arc<SectionHeader>>,
761-
subtests_with_failures_by_test:
762-
BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>,
763-
subtests_with_timeouts_by_test:
764-
BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>,
761+
tests_with_runner_errors: TestSet,
762+
tests_with_disabled_or_skip: TestSet,
763+
tests_with_crashes: TestSet,
764+
subtests_with_failures_by_test: SubtestByTestSet,
765+
subtests_with_timeouts_by_test: SubtestByTestSet,
765766
}
766767

767768
#[derive(Clone, Debug, Default)]
@@ -1063,12 +1064,12 @@ fn run(cli: Cli) -> ExitCode {
10631064
"\
10641065
{platform:?}:
10651066
HIGH PRIORITY:
1066-
{num_tests_with_runner_errors} test with execution reporting `ERROR`
1067-
{num_tests_with_disabled} tests with some portion marked as `disabled`
1068-
{num_tests_with_crashes} tests with some portion expecting `CRASH`
1067+
{num_tests_with_runner_errors} test(s) with execution reporting `ERROR`
1068+
{num_tests_with_disabled} test(s) with some portion marked as `disabled`
1069+
{num_tests_with_crashes} test(s) with some portion expecting `CRASH`
10691070
MEDIUM PRIORITY:
1070-
{num_tests_with_failures_somewhere} tests with some portion `FAIL`ing, {num_subtests_with_failures_somewhere} subtests total
1071-
{num_tests_with_timeouts_somewhere} tests with some portion returning `TIMEOUT`/`NOTRUN`, {num_subtests_with_timeouts_somewhere} subtests total
1071+
{num_tests_with_failures_somewhere} test(s) with some portion `FAIL`ing, {num_subtests_with_failures_somewhere} subtests total
1072+
{num_tests_with_timeouts_somewhere} test(s) with some portion returning `TIMEOUT`/`NOTRUN`, {num_subtests_with_timeouts_somewhere} subtests total
10721073
"
10731074
);
10741075
});

0 commit comments

Comments
 (0)