From: Junio C Hamano Date: Wed, 29 Sep 2010 19:37:48 GMT Subject: Re: [PATCHv4 14/15] Add missing &&'s throughout the testsuite Message-ID: <7vmxr0mjcj.fsf@alter.siamese.dyndns.org> In-Reply-To: <1285542879-16381-15-git-send-email-newren@gmail.com> Elijah Newren writes: > diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh > index de38c7f..ddd1c23 100755 > --- a/t/t0003-attributes.sh > +++ b/t/t0003-attributes.sh > @@ -19,24 +19,23 @@ attr_check () { > test_expect_success 'setup' ' > > mkdir -p a/b/d a/c && > - ( > - echo "[attr]notest !test" > - echo "f test=f" > - echo "a/i test=a/i" > - echo "onoff test -test" > - echo "offon -test test" > - echo "no notest" > - ) >.gitattributes && > - ( > - echo "g test=a/g" && > - echo "b/g test=a/b/g" > - ) >a/.gitattributes && > - ( > - echo "h test=a/b/h" && > - echo "d/* test=a/b/d/*" > - echo "d/yes notest" > - ) >a/b/.gitattributes > - > + cat <.gitattributes && If you are not doing any variable substitution in the here document, please quote EOF to make it clear, i.e. cat >.gitattributes <<\EOF && > @@ -73,7 +72,7 @@ offon: test: set > no: test: unspecified > a/b/d/no: test: a/b/d/* > a/b/d/yes: test: unspecified > -EOF > +EOF && Huh? Cascading && (or ||) goes on the first line of < diff --git a/t/t4119-apply-config.sh b/t/t4119-apply-config.sh > index 3c73a78..3d0384d 100755 > --- a/t/t4119-apply-config.sh > +++ b/t/t4119-apply-config.sh > @@ -73,7 +73,7 @@ D=`pwd` > test_expect_success 'apply --whitespace=strip in subdir' ' > > cd "$D" && > - git config --unset-all apply.whitespace > + git config --unset-all apply.whitespace && At this point, do we know that the previous test that added apply.whitespace to $D's configuration has successfully run and left the variable, or do we need to say this might-fail? > diff --git a/t/t8003-blame.sh b/t/t8003-blame.sh > index 230143c..ddabf4f 100755 > --- a/t/t8003-blame.sh > +++ b/t/t8003-blame.sh > @@ -153,15 +153,15 @@ test_expect_success 'blame path that used to be a directory' ' > ' > > test_expect_success 'blame to a commit with no author name' ' > - TREE=`git rev-parse HEAD:` > + TREE=`git rev-parse HEAD:` && > cat >badcommit < tree $TREE > author 1234567890 +0000 > committer David Reiss 1234567890 +0000 > > some message > -EOF > - COMMIT=`git hash-object -t commit -w badcommit` > +EOF && Huh, again?