From 7b65c0703f7a98260779f773f92173e33f43979b Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Thu, 12 Mar 2020 04:42:53 +0100 Subject: [PATCH] Simplify grep in test to pass on MacOS --- test/sharness/t0001-tests-work.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sharness/t0001-tests-work.sh b/test/sharness/t0001-tests-work.sh index 79557e109..6394fed77 100755 --- a/test/sharness/t0001-tests-work.sh +++ b/test/sharness/t0001-tests-work.sh @@ -10,7 +10,7 @@ for file in $(find .. -maxdepth 1 -name 't*.sh' -type f); do ' test_expect_success "test in $file has a description" ' - test_must_fail grep -L "^test_description=" "$file" + grep -q "^test_description=" "$file" ' # We have some tests that manually kill.