Skip to content

Commit e2d666d

Browse files
authored
tools: fix github reporter appended multiple times
PR-URL: nodejs#49199 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent a49bc4b commit e2d666d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ def HasRun(self, output):
317317

318318
class ActionsAnnotationProgressIndicator(DotsProgressIndicator):
319319
def AboutToRun(self, case):
320-
if not hasattr(case, 'additional_flags'):
321-
case.additional_flags = []
320+
case.additional_flags = case.additional_flags.copy() if hasattr(case, 'additional_flags') else []
322321
case.additional_flags.append('--test-reporter=./tools/github_reporter/index.js')
323322
case.additional_flags.append('--test-reporter-destination=stdout')
324323

0 commit comments

Comments
 (0)