From: Wincent Colaiuta Date: Fri, 23 Nov 2007 19:25:59 GMT Subject: Re: [PATCH 1/7] Add -q/--quiet switch to git-ls-files Message-ID: In-Reply-To: <1195845650-85962-2-git-send-email-win@wincent.com> El 23/11/2007, a las 20:20, Wincent Colaiuta escribió: > +test_expect_success \ > + 'git ls-files -q --error-unmatch should be quiet with unmatched > path.' \ > + 'git ls-files -q --error-unmatch foo bar-does-not-match 1> out > 2> err || > + test $(cat out | wc -l) -eq 0 && > + test $(cat err | wc -l) -gt 0' > + > +test_expect_success \ > + 'git ls-files -q --error-unmatch should be quiet with matched > paths.' \ > + 'git ls-files -q --error-unmatch foo bar 1> out 2> err || > + test $(cat out | wc -l) -eq 0 && > + test $(cat err | wc -l) -eq 0' > + > test_done Doh, in that last test it should be: + 'git ls-files -q --error-unmatch foo bar 1> out 2> err && Instead of: + 'git ls-files -q --error-unmatch foo bar 1> out 2> err || Cheers, Wincent