changeset 10470:2b57eed1be0b stable

Fix test-pull under Windows
author Patrick Mezard <pmezard@gmail.com>
date Sun, 14 Feb 2010 19:15:56 +0100
parents b26c4a89a143
children 132eb7128ad5
files tests/test-pull
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pull	Sun Feb 14 18:39:16 2010 +0100
+++ b/tests/test-pull	Sun Feb 14 19:15:56 2010 +0100
@@ -26,6 +26,10 @@
 hg pull -u ../test
 
 echo % test file: uri handling
-hg pull -q file://../test-doesnt-exist
+hg pull -q file://../test-doesnt-exist 2>&1 \
+    | sed 's%abort: repository.*/test-doesnt-exist%abort: repository /test-doesnt-exist%'
 hg pull -q file:../test
-hg pull -q file://foobar`pwd`/../test
+# It's tricky to make file:// URLs working on every platforms
+# with regular shell commands.
+URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
+hg pull -q $URL