From: Nipunn Koorapati Date: Wed, 25 Nov 2020 22:11:37 +0000 (+0000) Subject: perf/fsmonitor: use test_must_be_empty helper X-Git-Tag: v2.30.0-rc0~19^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36fa907d7a10c9c9c22009640ab9750adc04230d;p=thirdparty%2Fgit.git 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 Acked-by: Derrick Stolee Signed-off-by: Junio C Hamano --- 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 () {