t/perf/fsmonitor: shorten DESC to basename

The full name is lengthy and makes it hard to read Before: 7519.3: status (fsmonitor=/home/nipunn/src/server/.git/hooks/rs-git-fsmonitor) 0.02(0.01+0.00) After 7519.3: status (fsmonitor=rs-git-fsmonitor) 0.03(0.02+0.00) 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 dd79c1674655506a015820e38a8860327f5d3686
1 file changed +5 -1
t/perf/p7519-fsmonitor.sh
+5 -1
@@ -141,7 +141,11 @@ test_perf_w_drop_caches () {
141 }
142
143 test_fsmonitor_suite() {
144 - DESC="fsmonitor=$INTEGRATION_SCRIPT"
144 + if test -n "$INTEGRATION_SCRIPT"; then
145 + DESC="fsmonitor=$(basename $INTEGRATION_SCRIPT)"
146 + else
147 + DESC="fsmonitor=disabled"
148 + fi
149
150 test_perf_w_drop_caches "status ($DESC)" '
151 git status