Skip to content

Commit e93f5c6

Browse files
committed
Merge branch 'nk/perf-fsmonitor-cleanup' into maint
Test fix. * nk/perf-fsmonitor-cleanup: p7519: allow running without watchman prereq
2 parents a08832f + cc2d43b commit e93f5c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/perf/p7519-fsmonitor.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ setup_for_fsmonitor() {
129129

130130
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
131131
git update-index --fsmonitor 2>error &&
132-
test_must_be_empty error # ensure no silent error
132+
if test_have_prereq WATCHMAN
133+
then
134+
test_must_be_empty error # ensure no silent error
135+
else
136+
grep "Empty last update token" error
137+
fi
133138
}
134139

135140
test_perf_w_drop_caches () {

0 commit comments

Comments
 (0)