Skip to content

Commit 3a99a2c

Browse files
enable --junit to run.py for PR's
1 parent 99738dc commit 3a99a2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

run

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def parse_args():
128128
parser.add_argument('--cmake-cxx-launcher',
129129
metavar='PATH',
130130
help='the absolute path to set CMAKE_CXX_COMPILER_LAUNCHER for build script')
131+
parser.add_argument('--junit',
132+
action='store_true',
133+
help='Write a junit.xml file containing the project build results')
131134
return parser.parse_args()
132135

133136

@@ -212,6 +215,9 @@ def execute_runner(workspace, args, additional_runner_args):
212215
if args.build_config:
213216
runner_command += ['--build-config=%s' % args.build_config]
214217

218+
if args.junit:
219+
runner_command += ['--junit']
220+
215221
runner_command += additional_runner_args
216222

217223
common.check_execute(runner_command, timeout=9999999)

0 commit comments

Comments
 (0)