]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/perf/fsmonitor: shorten DESC to basename
authorNipunn Koorapati <nipunn@dropbox.com>
Mon, 26 Oct 2020 19:32:48 +0000 (19:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Oct 2020 23:39:34 +0000 (16:39 -0700)
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>
t/perf/p7519-fsmonitor.sh

index aa6b82d756887a4ef8a4739f489a3d5dd077b530..2c817db1ae0d34189ad289511880f73e9cba0c05 100755 (executable)
@@ -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