Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2011-12-08 17:10:17 +0400
committerJunio C Hamano <gitster@pobox.com>2011-12-09 04:02:26 +0400
commit02380389c6d4656c0cc94d33f9811636cb5953e4 (patch)
tree254dd6b28a2f2e4da8aae2c817212e253688591a /t/t1007-hash-object.sh
parent2f139044f96227deb8332942627a04b29c70c2bf (diff)
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 <artagnon@gmail.com> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1007-hash-object.sh')
-rwxr-xr-xt/t1007-hash-object.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1007-hash-object.sh b/t/t1007-hash-object.sh
index 6d52b824b1..f83df8eb8b 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
'