Re: [PATCH v2 0/4] remote-helpers: trivial test fixes
From: Torsten Bögershausen <hidden>
Date: 2016-06-15 22:56:42
On 06.04.13 19:29, Felipe Contreras wrote:
On Sat, Apr 6, 2013 at 11:03 AM, Torsten Bögershausen [off-list ref] wrote:quoted
On 04.04.13 17:36, Felipe Contreras wrote:quoted
Hi, A reroll, now we do some checks, just avoid test-lint-duplicates, and fix the outsanding shell portability issue. The rest is the same. Felipe Contreras (4): remote-bzr: avoid echo -n remote-helpers: fix the run of all tests remote-bzr: remove stale check code for tests remote-hg: fix hg-git test-case contrib/remote-helpers/Makefile | 1 + contrib/remote-helpers/test-bzr.sh | 16 +--------------- contrib/remote-helpers/test-hg-hg-git.sh | 1 - 3 files changed, 2 insertions(+), 16 deletions(-)Sorry being late, now I installed bzr and hg on one of my machines One defect found: "\s" is not portable on all grep versions A "*" is not a "basic regular expression", so we need to use egrepdiff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh index 5f81dfa..2e80c11 100755 --- a/contrib/remote-helpers/test-hg.sh +++ b/contrib/remote-helpers/test-hg.sh@@ -115,7 +115,7 @@ test_expect_success 'update bookmark' ' git push ) && - hg -R hgrepo bookmarks | grep "devel\s\+3:" + hg -R hgrepo bookmarks | egrep "devel[[:space:]]+3:" 'I would rather use [ \t] instead.
That doesn't work on e.g. Mac OS. [:space:] is actually portable /Torsten