Rename `prefix` to `index` in index generator. (#27576)

pull/27627/head
Paulo Castello da Costa 3 years ago committed by GitHub
parent 969f3d55ef
commit aea060b530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tools/run_tests/performance/loadtest_config.py

@ -111,10 +111,10 @@ def gen_run_indices(runs_per_test: int) -> Iterable[str]:
if runs_per_test < 2:
yield ''
return
prefix_length = len('{:d}'.format(runs_per_test - 1))
prefix_fmt = '{{:0{:d}d}}'.format(prefix_length)
index_length = len('{:d}'.format(runs_per_test - 1))
index_fmt = '{{:0{:d}d}}'.format(index_length)
for i in range(runs_per_test):
yield prefix_fmt.format(i)
yield index_fmt.format(i)
def gen_loadtest_configs(

Loading…
Cancel
Save