Skip to content

Commit

Permalink
fixup! test: change jenkins reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceres6 committed Jan 31, 2025
1 parent 5143039 commit c75904e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ def HasRun(self, output):

class ActionsAnnotationProgressIndicator(DotsProgressIndicator):
def AboutToRun(self, case):
case.additional_flags = case.additional_flags.copy() if hasattr(case, 'additional_flags') else []
case.additional_flags.append('--test-reporter=./test/common/test-error-reporter.js')
case.additional_flags.append('--test-reporter-destination=stdout')
pass

def GetAnnotationInfo(self, test, output):
traceback = output.stdout + output.stderr
Expand Down Expand Up @@ -351,9 +349,7 @@ def Starting(self):
self._done = 0

def AboutToRun(self, case):
case.additional_flags = case.additional_flags.copy() if hasattr(case, 'additional_flags') else []
case.additional_flags.append('--test-reporter=./test/common/test-error-reporter.js')
case.additional_flags.append('--test-reporter-destination=stdout')
pass

def HasRun(self, output):
self._done += 1
Expand Down Expand Up @@ -1450,6 +1446,9 @@ def BuildOptions():
result.add_option("--type",
help="Type of build (simple, fips, coverage)",
default=None)
result.add_option("--error-reporter",
help="use error reporter",
default=True, action="store_true")
return result


Expand Down Expand Up @@ -1669,6 +1668,10 @@ def Main():
run_worker = join(workspace, "tools", "run-worker.js")
options.node_args.append(run_worker)

if options.error_reporter:
options.node_args.append('--test-reporter=./test/common/test-error-reporter.js')
options.node_args.append('--test-reporter-destination=stdout')

processor = GetSpecialCommandProcessor(options.special_command)

context = Context(workspace,
Expand Down

0 comments on commit c75904e

Please sign in to comment.