Skip to content

Commit c75904e

Browse files
committed
fixup! test: change jenkins reporter
1 parent 5143039 commit c75904e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tools/test.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@ def HasRun(self, output):
316316

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

323321
def GetAnnotationInfo(self, test, output):
324322
traceback = output.stdout + output.stderr
@@ -351,9 +349,7 @@ def Starting(self):
351349
self._done = 0
352350

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

358354
def HasRun(self, output):
359355
self._done += 1
@@ -1450,6 +1446,9 @@ def BuildOptions():
14501446
result.add_option("--type",
14511447
help="Type of build (simple, fips, coverage)",
14521448
default=None)
1449+
result.add_option("--error-reporter",
1450+
help="use error reporter",
1451+
default=True, action="store_true")
14531452
return result
14541453

14551454

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

1671+
if options.error_reporter:
1672+
options.node_args.append('--test-reporter=./test/common/test-error-reporter.js')
1673+
options.node_args.append('--test-reporter-destination=stdout')
1674+
16721675
processor = GetSpecialCommandProcessor(options.special_command)
16731676

16741677
context = Context(workspace,

0 commit comments

Comments
 (0)