summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-15 23:20:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-15 23:20:29 (GMT)
commit7bfa0229936e88254de15e967ac09dbac50d7899 (patch)
tree4c7d191ea7d03a7da080f6df5ccb9d5f0918a7b3 /t
parent02feca721eaf008c54d497d884232bd0c144edbb (diff)
parentcc2d43be2bc93f7016ee97b8d78a79d771e017e4 (diff)
downloadgit-7bfa0229936e88254de15e967ac09dbac50d7899.zip
git-7bfa0229936e88254de15e967ac09dbac50d7899.tar.gz
git-7bfa0229936e88254de15e967ac09dbac50d7899.tar.bz2
Merge branch 'nk/perf-fsmonitor-cleanup'
Test fix. * nk/perf-fsmonitor-cleanup: p7519: allow running without watchman prereq
Diffstat (limited to 't')
-rwxr-xr-xt/perf/p7519-fsmonitor.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh
index 9b43342..1e20a18 100755
--- a/t/perf/p7519-fsmonitor.sh
+++ b/t/perf/p7519-fsmonitor.sh
@@ -129,7 +129,12 @@ setup_for_fsmonitor() {
git config core.fsmonitor "$INTEGRATION_SCRIPT" &&
git update-index --fsmonitor 2>error &&
- test_must_be_empty error # ensure no silent error
+ if test_have_prereq WATCHMAN
+ then
+ test_must_be_empty error # ensure no silent error
+ else
+ grep "Empty last update token" error
+ fi
}
test_perf_w_drop_caches () {