Skip to content

Commit b51946e

Browse files
MoLowUlisesGascon
authored andcommittedSep 10, 2023
tools: fix github reporter appended multiple times
PR-URL: #49199 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
1 parent f460362 commit b51946e

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)
Please sign in to comment.