[PATCH] test-convert: issue1585: Hide svn/bzr lib availability
Mads Kiilerich
mads at kiilerich.com
Wed Apr 1 05:41:19 CDT 2009
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1238582467 -7200
# Node ID d4905be3cfb471c0ae8ab0e8c29cbe1fb96a8741
# Parent 026bcd12a0adba249c2e1e1b43ccd4a8207c2e57
test-convert: issue1585: Hide svn/bzr lib availability
Make the test introduced in d596b1f2935a less specific.
diff --git a/tests/test-convert b/tests/test-convert
--- a/tests/test-convert
+++ b/tests/test-convert
@@ -47,4 +47,6 @@
echo % converting empty dir should fail "nicely"
mkdir emptydir
-PATH=$BINDIR hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g'
+# PATH is set to ensure that no conversion tools are available
+# Messages influenced by svn/bzr lib availability are patched
+PATH=$BINDIR hg convert emptydir 2>&1 | sed 's,^.*Subversion.*$,SUBVERSION MESSAGE,g' | sed 's,^.*Bazaar.*$,BAZAAR MESSAGE,g'
diff --git a/tests/test-convert.out b/tests/test-convert.out
--- a/tests/test-convert.out
+++ b/tests/test-convert.out
@@ -231,11 +231,11 @@
initializing destination emptydir-hg repository
emptydir does not look like a CVS checkout
emptydir does not look like a Git repo
-.../emptydir does not look like a Subversion repo
+SUBVERSION MESSAGE
emptydir is not a local Mercurial repo
emptydir does not look like a darcs repo
cannot find required "mtn" tool
emptydir does not look like a GNU Arch repo
-emptydir does not look like a Bazaar repo
+BAZAAR MESSAGE
cannot find required "p4" tool
abort: emptydir: missing or unsupported repository
More information about the Mercurial-devel
mailing list