test-subrepo-relative-path: partially adapt for Windows
authorAdrian Buehlmann <adrian@cadifra.com>
Mon, 02 Jul 2012 16:54:01 +0200
changeset 17093 cd8e109b673b
parent 17092 5d0d99952494
child 17094 c2016bae3b97
test-subrepo-relative-path: partially adapt for Windows
tests/test-subrepo-relative-path.t
--- 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"