@@ -316,9 +316,7 @@ def HasRun(self, output):
316
316
317
317
class ActionsAnnotationProgressIndicator (DotsProgressIndicator ):
318
318
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
322
320
323
321
def GetAnnotationInfo (self , test , output ):
324
322
traceback = output .stdout + output .stderr
@@ -1448,6 +1446,9 @@ def BuildOptions():
1448
1446
result .add_option ("--type" ,
1449
1447
help = "Type of build (simple, fips, coverage)" ,
1450
1448
default = None )
1449
+ result .add_option ("--error-reporter" ,
1450
+ help = "use error reporter" ,
1451
+ default = True , action = "store_true" )
1451
1452
return result
1452
1453
1453
1454
@@ -1663,6 +1664,10 @@ def Main():
1663
1664
options .node_args .append ("--always-turbofan" )
1664
1665
options .progress = "deopts"
1665
1666
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
+
1666
1671
if options .worker :
1667
1672
run_worker = join (workspace , "tools" , "run-worker.js" )
1668
1673
options .node_args .append (run_worker )
0 commit comments