summaryrefslogtreecommitdiff
path: root/t/perf/p7519-fsmonitor.sh
diff options
context:
space:
mode:
authorNipunn Koorapati <nipunn@dropbox.com>2020-10-26 19:32:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-26 23:39:34 (GMT)
commitdd79c1674655506a015820e38a8860327f5d3686 (patch)
treebae90e0b069061ed8d293c8b6854e72cd2bb4e31 /t/perf/p7519-fsmonitor.sh
parent3d53ebcd10b9fedb6d2aadaf613f4af17e0a4ef3 (diff)
downloadgit-dd79c1674655506a015820e38a8860327f5d3686.zip
git-dd79c1674655506a015820e38a8860327f5d3686.tar.gz
git-dd79c1674655506a015820e38a8860327f5d3686.tar.bz2
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>
Diffstat (limited to 't/perf/p7519-fsmonitor.sh')
-rwxr-xr-xt/perf/p7519-fsmonitor.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh
index aa6b82d..2c817db 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