tools/CTS: merge [Slow] + [Pass] -> [Slow]

Instead of Failure.

If we have duplicate results (same query, same tags), but with different results, then we have to merge them. Previously we'd merge Pass and Slow as Failure, which was just odd. Fix this so the combined result is Slow.

Bug: dawn:1342
Change-Id: If9b035bb3c1e59b7a93a5c8b194f854405e656d6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89960
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2022-05-12 10:08:46 +00:00 committed by Dawn LUCI CQ
parent bfdec4405b
commit 08f94e9004
1 changed files with 4 additions and 0 deletions

View File

@ -355,6 +355,10 @@ func CleanTags(cfg Config, results *result.List) {
return result.Crash return result.Crash
case s.Contains(result.Abort): case s.Contains(result.Abort):
return result.Abort return result.Abort
case s.Contains(result.Failure):
return result.Failure
case s.Contains(result.Slow):
return result.Slow
} }
return result.Failure return result.Failure
}) })