summaryrefslogtreecommitdiff
path: root/t/perf/p7519-fsmonitor.sh
diff options
context:
space:
mode:
authorNipunn Koorapati <nipunn@dropbox.com>2020-11-25 22:11:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-30 21:51:43 (GMT)
commit36fa907d7a10c9c9c22009640ab9750adc04230d (patch)
treea98b8ecfff61177a1269399c4b72d2cb6777dd73 /t/perf/p7519-fsmonitor.sh
parente67fbf927dfdf13d0b21dc6ea15dc3c7ef448ea0 (diff)
downloadgit-36fa907d7a10c9c9c22009640ab9750adc04230d.zip
git-36fa907d7a10c9c9c22009640ab9750adc04230d.tar.gz
git-36fa907d7a10c9c9c22009640ab9750adc04230d.tar.bz2
perf/fsmonitor: use test_must_be_empty helper
Simplify test and make error messages more clear here. Per feedback from Junio in 33226af42b (t/perf/fsmonitor: improve error message if typoing hook name, 2020-10-26) Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p7519-fsmonitor.sh')
-rwxr-xr-xt/perf/p7519-fsmonitor.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh
index 163a13b..9b43342 100755
--- a/t/perf/p7519-fsmonitor.sh
+++ b/t/perf/p7519-fsmonitor.sh
@@ -129,8 +129,7 @@ setup_for_fsmonitor() {
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
git update-index --fsmonitor 2>error &&
- cat error &&
- [ ! -s error ] # ensure no silent error
+ test_must_be_empty error # ensure no silent error
}
test_perf_w_drop_caches () {