Skip to content

Commit dd79c16

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ test_perf_w_drop_caches () {
141141
}
142142

143143
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
145149

146150
test_perf_w_drop_caches "status ($DESC)" '
147151
git status

0 commit comments

Comments
 (0)