summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2020-05-20 03:44:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-05-20 15:56:12 (GMT)
commit784ce03d5566194880b022f849bb58711c479ef3 (patch)
tree67bc297335f3f90c32e1e647e55d8a752d761f39
parentcaf388caa101be90b7ec43d7f78ca4e935fc0150 (diff)
downloadgit-784ce03d5566194880b022f849bb58711c479ef3.zip
git-784ce03d5566194880b022f849bb58711c479ef3.tar.gz
git-784ce03d5566194880b022f849bb58711c479ef3.tar.bz2
t4216: avoid unnecessary subshell in test_bloom_filters_not_used
Seems to trigger a bug in at least OpenBSD's 6.7 sh where it is interpreted as a history lookup and therefore fails 125-126, 128, 130. Remove the subshell and get a space between ! and grep, so tests pass successfully. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t4216-log-bloom.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4216-log-bloom.sh b/t/t4216-log-bloom.sh
index c7011f3..f19ceec 100755
--- a/t/t4216-log-bloom.sh
+++ b/t/t4216-log-bloom.sh
@@ -70,7 +70,7 @@ test_bloom_filters_used () {
test_bloom_filters_not_used () {
log_args=$1
setup "$log_args" &&
- !(grep -q "statistics:{\"filter_not_present\":" "$TRASH_DIRECTORY/trace.perf") &&
+ ! grep -q "statistics:{\"filter_not_present\":" "$TRASH_DIRECTORY/trace.perf" &&
test_cmp log_wo_bloom log_w_bloom
}