From: Nipunn Koorapati Date: Mon, 26 Oct 2020 19:32:48 +0000 (+0000) Subject: t/perf/fsmonitor: shorten DESC to basename X-Git-Tag: v2.30.0-rc0~85^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd79c1674655506a015820e38a8860327f5d3686;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh index aa6b82d756..2c817db1ae 100755 --- a/t/perf/p7519-fsmonitor.sh +++ b/t/perf/p7519-fsmonitor.sh @@ -141,7 +141,11 @@ test_perf_w_drop_caches () { } test_fsmonitor_suite() { - DESC="fsmonitor=$INTEGRATION_SCRIPT" + if test -n "$INTEGRATION_SCRIPT"; then + DESC="fsmonitor=$(basename $INTEGRATION_SCRIPT)" + else + DESC="fsmonitor=disabled" + fi test_perf_w_drop_caches "status ($DESC)" ' git status