@@ -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
118116class 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
275275class 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