summaryrefslogtreecommitdiff
path: root/t/perf/p7519-fsmonitor.sh
diff options
context:
space:
mode:
authorNipunn Koorapati <nipunn@dropbox.com>2020-10-26 19:32:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-26 23:39:33 (GMT)
commit33226af42b8fbdc7551a56753123385a5ee079fa (patch)
treee26afad1e8f231e3b5110aa52499afcca27e7fbb /t/perf/p7519-fsmonitor.sh
parent0288b9322d37b2b1644fd11afb9929ce75f32af5 (diff)
downloadgit-33226af42b8fbdc7551a56753123385a5ee079fa.zip
git-33226af42b8fbdc7551a56753123385a5ee079fa.tar.gz
git-33226af42b8fbdc7551a56753123385a5ee079fa.tar.bz2
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>
Diffstat (limited to 't/perf/p7519-fsmonitor.sh')
-rwxr-xr-xt/perf/p7519-fsmonitor.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh
index 4030f56..88b3717 100755
--- a/t/perf/p7519-fsmonitor.sh
+++ b/t/perf/p7519-fsmonitor.sh
@@ -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
'