From 931be3f7eff03f18db443522e5a5b748272aaa6b Mon Sep 17 00:00:00 2001 From: Paulo Castello da Costa <6579971+paulosjca@users.noreply.github.com> Date: Mon, 4 Oct 2021 06:30:43 -0700 Subject: [PATCH] Fix load test name format for more than 10 runs per test. (#27558) --- tools/run_tests/performance/loadtest_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_tests/performance/loadtest_config.py b/tools/run_tests/performance/loadtest_config.py index 14a68efe93c..169675704be 100755 --- a/tools/run_tests/performance/loadtest_config.py +++ b/tools/run_tests/performance/loadtest_config.py @@ -112,7 +112,7 @@ def gen_run_indices(runs_per_test: int) -> Iterable[str]: yield '' return 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): yield prefix_fmt.format(i)