Thread (181 messages) 181 messages, 7 authors, 2021-01-20

Re: [PATCH v5 26/26] t7700: stop losing return codes of git commands

From: Danh Doan <hidden>
Date: 2019-11-30 10:48:17

Hi Denton,

On 2019-11-27 11:54:04-0800, Denton Liu [off-list ref] wrote:
quoted hunk ↗ jump to hunk
-	test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
-		grep "^$coid " | sort | uniq | wc -l) &&
+	git verify-pack -v -- .git/objects/pack/*.idx >packlist &&
+	! grep "^$coid " packlist &&
I think we want to use test_must_fail instead of !
quoted hunk ↗ jump to hunk
 	echo >.git/objects/info/alternates &&
 	test_must_fail git show $coid
 '
@@ -151,8 +150,8 @@ test_expect_success 'local packed unreachable obs that exist in alternate ODB ar
 	    --unpack-unreachable </dev/null pack &&
 	rm -f .git/objects/pack/* &&
 	mv pack-* .git/objects/pack/ &&
-	test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
-		grep "^$coid " | sort | uniq | wc -l) &&
+	git verify-pack -v -- .git/objects/pack/*.idx >packlist &&
+	! grep "^$coid " &&
ditto

-- 
Danh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help