◐ Shell
clean mode source ↗

test: change jenkins reporter · nodejs/node@abca97f

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

@@ -1448,6 +1446,9 @@ def BuildOptions():

14481446

result.add_option("--type",

14491447

help="Type of build (simple, fips, coverage)",

14501448

default=None)

1449+

result.add_option("--error-reporter",

1450+

help="use error reporter",

1451+

default=True, action="store_true")

14511452

return result

14521453
14531454

@@ -1663,6 +1664,10 @@ def Main():

16631664

options.node_args.append("--always-turbofan")

16641665

options.progress = "deopts"

16651666
1667+

if options.error_reporter:

1668+

options.node_args.append('--test-reporter=./test/common/test-error-reporter.js')

1669+

options.node_args.append('--test-reporter-destination=stdout')

1670+
16661671

if options.worker:

16671672

run_worker = join(workspace, "tools", "run-worker.js")

16681673

options.node_args.append(run_worker)