changeset 26431:46984a5308a0

test-commandserver: generate files with a fixed EOL for test stability The hashes were different on Windows.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 01 Oct 2015 21:49:50 -0400
parents 1f8208a7277e
children 39577d4520ab
files tests/test-commandserver.t
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-commandserver.t	Thu Oct 01 21:24:10 2015 -0400
+++ b/tests/test-commandserver.t	Thu Oct 01 21:49:50 2015 -0400
@@ -378,7 +378,10 @@
   ...     runcommand(server, ['log', '-qr', 'draft()'])
   ...     # create draft commits by another process
   ...     for i in xrange(5, 7):
-  ...         os.system('echo a >> a')
+  ...         f = open('a', 'ab')
+  ...         f.seek(0, os.SEEK_END)
+  ...         f.write('a\n')
+  ...         f.close()
   ...         os.system('hg commit -Aqm%d' % i)
   ...     # new commits should be listed as draft revisions
   ...     runcommand(server, ['log', '-qr', 'draft()'])