diff tests/test-init.t @ 16541:bb3334806ace stable

tests: quote dummyssh in a way that works on windows too Don't depend on $environmentvariableexpansion and 'quote' handling in system()
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 28 Apr 2012 02:00:04 +0200
parents 4f795f5fbb0b
children ccebe526d321
line wrap: on
line diff
--- a/tests/test-init.t	Sat Apr 28 01:55:39 2012 +0200
+++ b/tests/test-init.t	Sat Apr 28 02:00:04 2012 +0200
@@ -61,7 +61,7 @@
 
 init+push to remote2
 
-  $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
+  $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2
   $ hg incoming -R remote2 local
   comparing with local
   changeset:   0:08b9e9f63b32
@@ -71,7 +71,7 @@
   summary:     init
   
 
-  $ hg push -R local -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote2
+  $ hg push -R local -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote2
   pushing to ssh://user@dummy/remote2
   searching for changes
   remote: adding changesets
@@ -81,7 +81,7 @@
 
 clone to remote1
 
-  $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
+  $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1
   searching for changes
   remote: adding changesets
   remote: adding manifests
@@ -90,14 +90,14 @@
 
 init to existing repo
 
-  $ hg init -e 'python "$TESTDIR/dummyssh"' ssh://user@dummy/remote1
+  $ hg init -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1
   abort: repository remote1 already exists!
   abort: could not create remote repo!
   [255]
 
 clone to existing repo
 
-  $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote1
+  $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1
   abort: repository remote1 already exists!
   abort: could not create remote repo!
   [255]
@@ -186,7 +186,7 @@
   $ hg -R local bookmark test
   $ hg -R local bookmarks
    * test                      0:08b9e9f63b32
-  $ hg clone -e 'python "$TESTDIR/dummyssh"' local ssh://user@dummy/remote-bookmarks
+  $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks
   searching for changes
   remote: adding changesets
   remote: adding manifests