From: "Torsten Bögershausen" <tboegi@web.de>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org, "Junio C Hamano" <gitster@pobox.com>,
"Jeff King" <peff@peff.net>, "Max Horn" <max@quendi.de>,
"Antoine Pelisse" <apelisse@gmail.com>,
"Torsten Bögershausen" <tboegi@web.de>
Subject: Re: [PATCH v2 0/4] remote-helpers: trivial test fixes
Date: Sat, 06 Apr 2013 19:03:02 +0200 [thread overview]
Message-ID: <51605546.3080503@web.de> (raw)
In-Reply-To: <1365089779-9726-1-git-send-email-felipe.contreras@gmail.com>
On 04.04.13 17:36, Felipe Contreras wrote:
> 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 egrep
diff --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:"
'
2 mninor nits:
diff --git a/contrib/remote-helpers/test-bzr.sh b/contrib/remote-helpers/test-bzr.sh
index 8450432..7970f9e 100755
--- a/contrib/remote-helpers/test-bzr.sh
+++ b/contrib/remote-helpers/test-bzr.sh
@@ -13,7 +13,7 @@ if ! test_have_prereq PYTHON; then
fi
if ! "$PYTHON_PATH" -c 'import bzrlib'; then
- skip_all='skipping remote-bzr tests; bzr not available'
+ skip_all='skipping remote-bzr tests; python bzrlib not available'
test_done
fi
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh
index 3f253b7..5d87282 100755
--- a/contrib/remote-helpers/test-hg-hg-git.sh
+++ b/contrib/remote-helpers/test-hg-hg-git.sh
@@ -21,7 +21,7 @@ if ! "$PYTHON_PATH" -c 'import mercurial'; then
fi
if ! "$PYTHON_PATH" -c 'import hggit'; then
- skip_all='skipping remote-hg tests; hg-git not available'
+ skip_all='skipping remote-hg tests; python hggit not available'
test_done
fi
(And as a micro-nit: the indenting deserves some better indentation:
TAB could be used for *.sh, and sub-shells could be indentented one TAB:
test_expect_success 'update bookmark' '
test_when_finished "rm -rf gitrepo*" &&
(
cd hgrepo &&
hg bookmark devel
/Torsten
next prev parent reply other threads:[~2013-04-06 17:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 15:36 [PATCH v2 0/4] remote-helpers: trivial test fixes Felipe Contreras
2013-04-04 15:36 ` [PATCH v2 1/4] remote-bzr: avoid echo -n Felipe Contreras
2013-04-04 15:36 ` [PATCH v2 2/4] remote-helpers: fix the run of all tests Felipe Contreras
2013-04-04 15:36 ` [PATCH v2 3/4] remote-bzr: remove stale check code for tests Felipe Contreras
2013-04-04 15:36 ` [PATCH v2 4/4] remote-hg: fix hg-git test-case Felipe Contreras
2013-04-06 17:03 ` Torsten Bögershausen [this message]
2013-04-06 17:09 ` [PATCH v2 0/4] remote-helpers: trivial test fixes Torsten Bögershausen
2013-04-06 17:29 ` Felipe Contreras
2013-04-06 17:45 ` Torsten Bögershausen
2013-04-06 17:58 ` Felipe Contreras
2013-04-06 18:41 ` Torsten Bögershausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51605546.3080503@web.de \
--to=tboegi@web.de \
--cc=apelisse@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=max@quendi.de \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).