From 02380389c6d4656c0cc94d33f9811636cb5953e4 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Thu, 8 Dec 2011 18:40:17 +0530 Subject: test: fix '&&' chaining Breaks in a test assertion's && chain can potentially hide failures from earlier commands in the chain by adding " &&" at the end of line to the commands that need them. Signed-off-by: Ramkumar Ramachandra Acked-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- t/t1007-hash-object.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t1007-hash-object.sh') diff --git a/t/t1007-hash-object.sh b/t/t1007-hash-object.sh index 6d52b824b..f83df8eb8 100755 --- a/t/t1007-hash-object.sh +++ b/t/t1007-hash-object.sh @@ -189,7 +189,7 @@ for args in "-w --stdin-paths" "--stdin-paths -w"; do done test_expect_success 'corrupt tree' ' - echo abc >malformed-tree + echo abc >malformed-tree && test_must_fail git hash-object -t tree malformed-tree ' -- cgit v1.2.1