Skip to content

Commit 1ebd26c

Browse files
committed
Move skipped codes back to XunitReport and TimeTraceReport
1 parent edc0935 commit 1ebd26c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/utils/lit/lit/reports.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def __init__(self, output_file):
2222
self.output_file = output_file
2323
# Set by the option parser later.
2424
self.use_unique_output_file_name = False
25-
self.skipped_codes = {lit.Test.EXCLUDED,
26-
lit.Test.SKIPPED, lit.Test.UNSUPPORTED}
2725

2826
def write_results(self, tests, elapsed):
2927
if self.use_unique_output_file_name:
@@ -116,6 +114,8 @@ def remove_invalid_xml_chars(s):
116114

117115

118116
class XunitReport(Report):
117+
skipped_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED, lit.Test.UNSUPPORTED}
118+
119119
def _write_results_to_file(self, tests, elapsed, file):
120120
tests.sort(key=by_suite_and_test_path)
121121
tests_by_suite = itertools.groupby(tests, lambda t: t.suite)
@@ -273,6 +273,8 @@ def _write_results_to_file(self, tests, elapsed, file):
273273

274274

275275
class TimeTraceReport(Report):
276+
skipped_codes = {lit.Test.EXCLUDED, lit.Test.SKIPPED, lit.Test.UNSUPPORTED}
277+
276278
def _write_results_to_file(self, tests, elapsed, file):
277279
# Find when first test started so we can make start times relative.
278280
first_start_time = min([t.result.start for t in tests])

0 commit comments

Comments
 (0)