tests: double escape \ in test-import-eol.t and test-mq-eol.t
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 15 Feb 2019 13:07:07 -0800
changeset 41707 140b542b0e59
parent 41706 7396508ad92b
child 41708 d20f1594ff4a
tests: double escape \ in test-import-eol.t and test-mq-eol.t The shell eats the \\. Differential Revision: https://phab.mercurial-scm.org/D5974
tests/test-import-eol.t
tests/test-mq-eol.t
--- a/tests/test-import-eol.t	Fri Feb 15 13:05:01 2019 -0800
+++ b/tests/test-import-eol.t	Fri Feb 15 13:07:07 2019 -0800
@@ -17,9 +17,9 @@
   >    'empty:stripped-crlf': b'\r\n'}[sys.argv[1]])
   > w(b' d\n')
   > w(b'-e\n')
-  > w(b'\\ No newline at end of file\n')
+  > w(b'\\\\ No newline at end of file\n')
   > w(b'+z\r\n')
-  > w(b'\\ No newline at end of file\r\n')
+  > w(b'\\\\ No newline at end of file\r\n')
   > EOF
 
   $ hg init repo
--- a/tests/test-mq-eol.t	Fri Feb 15 13:05:01 2019 -0800
+++ b/tests/test-mq-eol.t	Fri Feb 15 13:07:07 2019 -0800
@@ -23,9 +23,9 @@
   > w(b' c\r\n')
   > w(b' d\n')
   > w(b'-e\n')
-  > w(b'\\ No newline at end of file\n')
+  > w(b'\\\\ No newline at end of file\n')
   > w(b'+z\r\n')
-  > w(b'\\ No newline at end of file\r\n')
+  > w(b'\\\\ No newline at end of file\r\n')
   > EOF
 
   $ cat > cateol.py <<EOF