Fix load test name format for more than 10 runs per test. (#27558)

pull/27576/head
Paulo Castello da Costa 3 years ago committed by GitHub
parent 36b0e06e20
commit 931be3f7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/run_tests/performance/loadtest_config.py

@ -112,7 +112,7 @@ def gen_run_indices(runs_per_test: int) -> Iterable[str]:
yield '' yield ''
return return
prefix_length = len('{:d}'.format(runs_per_test - 1)) prefix_length = len('{:d}'.format(runs_per_test - 1))
prefix_fmt = '{{:{:d}d}}'.format(prefix_length) prefix_fmt = '{{:0{:d}d}}'.format(prefix_length)
for i in range(runs_per_test): for i in range(runs_per_test):
yield prefix_fmt.format(i) yield prefix_fmt.format(i)

Loading…
Cancel
Save