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>
maint
Nipunn Koorapati 2020-11-25 22:11:37 +00:00 committed by Junio C Hamano
parent e67fbf927d
commit 36fa907d7a
1 changed files with 1 additions and 2 deletions

View File

@ -129,8 +129,7 @@ setup_for_fsmonitor() {


git config core.fsmonitor "$INTEGRATION_SCRIPT" && git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
git update-index --fsmonitor 2>error && git update-index --fsmonitor 2>error &&
cat error && test_must_be_empty error # ensure no silent error
[ ! -s error ] # ensure no silent error
} }


test_perf_w_drop_caches () { test_perf_w_drop_caches () {