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>
This commit is contained in:

committed by
Junio C Hamano

parent
2f139044f9
commit
02380389c6
@ -34,7 +34,7 @@ assert_blob_equals() {
|
||||
}
|
||||
|
||||
test_expect_success setup '
|
||||
cp -R "$TEST_DIRECTORY/t1013/objects" .git/
|
||||
cp -R "$TEST_DIRECTORY/t1013/objects" .git/ &&
|
||||
git --version
|
||||
'
|
||||
|
||||
|
Reference in New Issue
Block a user