git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix t4017-diff-retval for white-space from wc

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jun 30, 2008, 01:26 UTC
Message-ID
<1214789205-43490-1-git-send-email-benji@silverinsanity.com>
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
 t/t4017-diff-retval.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t4017-diff-retval.sh b/t/t4017-diff-retval.sh
index d748d45..60dd201 100755
--- a/t/t4017-diff-retval.sh
+++ b/t/t4017-diff-retval.sh
@@ -123,7 +123,7 @@ test_expect_success 'check detects leftover conflict markers' '
 		git --no-pager diff --cached --check >test.out
 		test $? = 2
 	) &&
-	test "$(grep "conflict marker" test.out | wc -l)" = 3 &&
+	test 3 = $(grep "conflict marker" test.out | wc -l) &&
 	git reset --hard
 '
 
-- 
1.5.6.105.g6f4b
Next: Brian Gernhardt
Message 1 of 2 in “Fix t4017-diff-retval for white-space from wc”
  1. Fix t4017-diff-retval for white-space from wcBrian Gernhardt, Jun 30, 2008
  2. Brian GernhardtJun 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.