changeset 27054:fe458d078ed7

test-import: don't use printf to append an extension to $HGRCPATH The extension was failing to load on Windows because $TESTTMP contains a path component 'test', prefixed by a path separator '\'. That combination ends up converted to "...<tab>est...".
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 16 Nov 2015 14:12:27 -0500
parents c858945f6969
children 5a0ffa245920
files tests/test-import.t
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-import.t	Mon Nov 16 13:44:27 2015 -0500
+++ b/tests/test-import.t	Mon Nov 16 14:12:27 2015 -0500
@@ -1735,7 +1735,10 @@
   > mercurial.cmdutil.extrapostimport.append('foo')
   > mercurial.cmdutil.extrapostimportmap['foo'] = postimport
   > EOF
-  $ printf "[extensions]\nparseextra=$TESTTMP/parseextra.py" >> $HGRCPATH
+  $ cat >> $HGRCPATH <<EOF
+  > [extensions]
+  > parseextra=$TESTTMP/parseextra.py
+  > EOF
   $ hg up -C tip
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cat > $TESTTMP/foo.patch <<EOF