Skip to content

Commit 52d3d75

Browse files
committed
add support for {#} similar to parallel
allows for `--gtest_output=xml:reports/report_{#}.xml` to be used instead of relying on googletest itself to lock a unique filename and using that Signed-off-by: Christopher Degawa <[email protected]>
1 parent 96f4f90 commit 52d3d75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gtest_parallel.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,8 @@ def find_tests(binaries, additional_args, options, times):
662662
if options.failed and last_execution_time is not None:
663663
continue
664664

665-
test_command = command + ['--gtest_filter=' + test_name]
665+
test_command = [a.replace('{#}', f"{test_count}")
666+
for a in command] + ['--gtest_filter=' + test_name]
666667
if (test_count - options.shard_index) % options.shard_count == 0:
667668
for execution_number in range(options.repeat):
668669
tasks.append(

0 commit comments

Comments
 (0)