Message ID | pull.799.git.1606342297403.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3096e954bec9d004850b58f0aba7717c09dadc7f |
Headers | show |
Series | perf/fsmonitor: use test_must_be_empty helper | expand |
On 11/25/2020 5:11 PM, Nipunn Koorapati via GitGitGadget wrote: > From: Nipunn Koorapati <nipunn@dropbox.com> > > 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) Thanks, Nipunn. This patch looks good to me. -Stolee
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 () {