Skip to content

Commit 7ed7c91

Browse files
committed
[CTS] Treat skipped tests as passes
The conformance tests skip tests when a devices returns `UR_RESULT_ERROR_UNSUPPORTED_FEATURE` and the feature under test is optional. As such, skipped tests count as passes because the device has exhibiting valid behaviour. This patch changes how CTS pass rates are calculated to match.
1 parent cc268e5 commit 7ed7c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ctest_parser.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def summarize_results(results):
3333
total_failed = len(results['Failed'])
3434
total_crashed = total - (total_passed + total_skipped + total_failed)
3535

36-
pass_rate_incl_skipped = percent(total_passed, total)
37-
pass_rate_excl_skipped = percent(total_passed, total - total_skipped)
36+
pass_rate_incl_skipped = percent(total_passed + total_skipped, total)
37+
pass_rate_excl_skipped = percent(total_passed, total)
3838

3939
skipped_rate = percent(total_skipped, total)
4040
failed_rate = percent(total_failed, total)

0 commit comments

Comments
 (0)