1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-13 00:16:38 +02:00

t/perf/fsmonitor: improve error message if typoing hook name

Previously - it would silently run the perf suite w/o using
fsmonitor - fsmonitor errors are not hard failures.
Now it errors loudly.

GIT_PERF_7519_FSMONITOR="$HOME/rs-git-fsmonitorr"
./p7519-fsmonitor.sh -i -v

fatal: cannot run /home/nipunn/rs-git-fsmonitorr:
No such file or directory
not ok 2 - setup for fsmonitor

Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nipunn Koorapati 2020-10-26 19:32:46 +00:00 committed by Junio C Hamano
parent 0288b9322d
commit 33226af42b

View File

@ -126,7 +126,9 @@ test_expect_success "setup for fsmonitor" '
fi &&
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
git update-index --fsmonitor &&
git update-index --fsmonitor 2>error &&
cat error &&
[ ! -s error ] && # ensure no silent error
git status # Warm caches
'