Skip to content

Commit 3d53ebc

Browse files
nipunn1313gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33226af commit 3d53ebc

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,43 +141,45 @@ test_perf_w_drop_caches () {
141141
}
142142

143143
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)" '
145147
git status
146148
'
147149

148-
test_perf_w_drop_caches "status -uno (fsmonitor=$INTEGRATION_SCRIPT)" '
150+
test_perf_w_drop_caches "status -uno ($DESC)" '
149151
git status -uno
150152
'
151153

152-
test_perf_w_drop_caches "status -uall (fsmonitor=$INTEGRATION_SCRIPT)" '
154+
test_perf_w_drop_caches "status -uall ($DESC)" '
153155
git status -uall
154156
'
155157

156-
test_perf_w_drop_caches "diff (fsmonitor=$INTEGRATION_SCRIPT)" '
158+
test_perf_w_drop_caches "diff ($DESC)" '
157159
git diff
158160
'
159161

160-
test_perf_w_drop_caches "diff -- 0_files (fsmonitor=$INTEGRATION_SCRIPT)" '
162+
test_perf_w_drop_caches "diff -- 0_files ($DESC)" '
161163
git diff -- 1_file
162164
'
163165

164-
test_perf_w_drop_caches "diff -- 10_files (fsmonitor=$INTEGRATION_SCRIPT)" '
166+
test_perf_w_drop_caches "diff -- 10_files ($DESC)" '
165167
git diff -- 10_files
166168
'
167169

168-
test_perf_w_drop_caches "diff -- 100_files (fsmonitor=$INTEGRATION_SCRIPT)" '
170+
test_perf_w_drop_caches "diff -- 100_files ($DESC)" '
169171
git diff -- 100_files
170172
'
171173

172-
test_perf_w_drop_caches "diff -- 1000_files (fsmonitor=$INTEGRATION_SCRIPT)" '
174+
test_perf_w_drop_caches "diff -- 1000_files ($DESC)" '
173175
git diff -- 1000_files
174176
'
175177

176-
test_perf_w_drop_caches "diff -- 10000_files (fsmonitor=$INTEGRATION_SCRIPT)" '
178+
test_perf_w_drop_caches "diff -- 10000_files ($DESC)" '
177179
git diff -- 10000_files
178180
'
179181

180-
test_perf_w_drop_caches "add (fsmonitor=$INTEGRATION_SCRIPT)" '
182+
test_perf_w_drop_caches "add ($DESC)" '
181183
git add --all
182184
'
183185
}

0 commit comments

Comments
 (0)