Skip to content

Commit 33226af

Browse files
nipunn1313gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0288b93 commit 33226af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ test_expect_success "setup for fsmonitor" '
126126
fi &&
127127
128128
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
129-
git update-index --fsmonitor &&
129+
git update-index --fsmonitor 2>error &&
130+
cat error &&
131+
[ ! -s error ] && # ensure no silent error
130132
git status # Warm caches
131133
'
132134

0 commit comments

Comments
 (0)