t/perf/fsmonitor: factor description out for readability

There was much duplication here. Prepares for making changes to the description. Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nipunn Koorapati committed Oct 26, 2020 at 19:32 UTC 3d53ebcd10b9fedb6d2aadaf613f4af17e0a4ef3
1 file changed +12 -10
t/perf/p7519-fsmonitor.sh
+12 -10
@@ -141,43 +141,45 @@ test_perf_w_drop_caches () {
141 }
142
143 test_fsmonitor_suite() {
144 - test_perf_w_drop_caches "status (fsmonitor=$INTEGRATION_SCRIPT)" '
144 + DESC="fsmonitor=$INTEGRATION_SCRIPT"
145 +
146 + test_perf_w_drop_caches "status ($DESC)" '
147 git status
148 '
149
148 - test_perf_w_drop_caches "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
150 + test_perf_w_drop_caches "status -uno ($DESC)" '
151 git status -uno
152 '
153
152 - test_perf_w_drop_caches "status -uall (fsmonitor=$INTEGRATION_SCRIPT)" '
154 + test_perf_w_drop_caches "status -uall ($DESC)" '
155 git status -uall
156 '
157
156 - test_perf_w_drop_caches "diff (fsmonitor=$INTEGRATION_SCRIPT)" '
158 + test_perf_w_drop_caches "diff ($DESC)" '
159 git diff
160 '
161
160 - test_perf_w_drop_caches "diff -- 0_files (fsmonitor=$INTEGRATION_SCRIPT)" '
162 + test_perf_w_drop_caches "diff -- 0_files ($DESC)" '
163 git diff -- 1_file
164 '
165
164 - test_perf_w_drop_caches "diff -- 10_files (fsmonitor=$INTEGRATION_SCRIPT)" '
166 + test_perf_w_drop_caches "diff -- 10_files ($DESC)" '
167 git diff -- 10_files
168 '
169
168 - test_perf_w_drop_caches "diff -- 100_files (fsmonitor=$INTEGRATION_SCRIPT)" '
170 + test_perf_w_drop_caches "diff -- 100_files ($DESC)" '
171 git diff -- 100_files
172 '
173
172 - test_perf_w_drop_caches "diff -- 1000_files (fsmonitor=$INTEGRATION_SCRIPT)" '
174 + test_perf_w_drop_caches "diff -- 1000_files ($DESC)" '
175 git diff -- 1000_files
176 '
177
176 - test_perf_w_drop_caches "diff -- 10000_files (fsmonitor=$INTEGRATION_SCRIPT)" '
178 + test_perf_w_drop_caches "diff -- 10000_files ($DESC)" '
179 git diff -- 10000_files
180 '
181
180 - test_perf_w_drop_caches "add (fsmonitor=$INTEGRATION_SCRIPT)" '
182 + test_perf_w_drop_caches "add ($DESC)" '
183 git add --all
184 '
185 }