changeset 17093:cd8e109b673b

test-subrepo-relative-path: partially adapt for Windows
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 02 Jul 2012 16:54:01 +0200
parents 5d0d99952494
children c2016bae3b97
files tests/test-subrepo-relative-path.t
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-subrepo-relative-path.t	Tue Jul 03 01:49:51 2012 +0200
+++ b/tests/test-subrepo-relative-path.t	Mon Jul 02 16:54:01 2012 +0200
@@ -74,9 +74,7 @@
 
 subrepo paths with ssh urls
 
-  $ cp "$TESTDIR/dummyssh" "$BINDIR/ssh"
-
-  $ hg clone ssh://user@dummy/cloned sshclone
+  $ hg clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/cloned sshclone
   requesting all changes
   adding changesets
   adding manifests
@@ -91,7 +89,7 @@
   added 1 changesets with 1 changes to 1 files
   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
-  $ hg -R sshclone push ssh://user@dummy/$TESTTMP/cloned
+  $ hg -R sshclone push -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/cloned
   pushing to ssh://user@dummy/$TESTTMP/cloned
   pushing subrepo sub to ssh://user@dummy/$TESTTMP/sub
   searching for changes
@@ -105,4 +103,3 @@
   Got arguments 1:user@dummy 2:hg -R sub serve --stdio
   Got arguments 1:user@dummy 2:hg -R $TESTTMP/cloned serve --stdio
   Got arguments 1:user@dummy 2:hg -R $TESTTMP/sub serve --stdio
-  $ rm "$BINDIR/ssh"