Skip to content

Commit 36fa907

Browse files
nipunn1313gitster
authored andcommitted
perf/fsmonitor: use test_must_be_empty helper
Simplify test and make error messages more clear here. Per feedback from Junio in 33226af (t/perf/fsmonitor: improve error message if typoing hook name, 2020-10-26) Signed-off-by: Nipunn Koorapati <[email protected]> Acked-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e67fbf9 commit 36fa907

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ setup_for_fsmonitor() {
129129

130130
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
131131
git update-index --fsmonitor 2>error &&
132-
cat error &&
133-
[ ! -s error ] # ensure no silent error
132+
test_must_be_empty error # ensure no silent error
134133
}
135134

136135
test_perf_w_drop_caches () {

0 commit comments

Comments
 (0)