summaryrefslogtreecommitdiff
path: root/t/perf
diff options
context:
space:
mode:
authorLibravatar Nipunn Koorapati <nipunn@dropbox.com>2020-11-25 22:11:37 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-30 13:51:43 -0800
commit36fa907d7a10c9c9c22009640ab9750adc04230d (patch)
treea98b8ecfff61177a1269399c4b72d2cb6777dd73 /t/perf
parentEighth batch (diff)
downloadtgif-36fa907d7a10c9c9c22009640ab9750adc04230d.tar.xz
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')
-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 163a13bea3..9b43342806 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 () {