Skip to contentSkip to conversation

Fix t4017-diff-retval for white-space from wc

PATCH New Brian Gernhardt 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix t4017-diff-retval for white-space from wc

---
 t/t4017-diff-retval.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Also: we have t4017-diff-retval and t4017-quiet. Should one of these be renamed?

t/t4017-diff-retval.sh +1 -1
index d748d45..60dd201 100755
@@ -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
 '
 
Signature · 1 line
1.5.6.105.g6f4b