[issue1383] test-export fails on FreeBSD/Mac OS X

Akira Kitada mercurial-bugs at selenic.com
Sun Nov 9 04:35:18 CST 2008


New submission from Akira Kitada <akitada at gmail.com>:

$ make test-export
cd tests && python run-tests.py  test-export

ERROR: test-export output changed
--- Expected output 
+++ Test output 
@@ -59,6 +59,6 @@
 foo-10.patch
 foo-11.patch
 # exporting 4 changesets to a file
-4
+       4
 # exporting 4 changesets to a file
-4
+       4
!
Failed test-export: output changed
# Ran 1 tests, 0 skipped, 1 failed.
make: *** [test-export] Error 1

The fix would be something like

diff -r 1a5c9ca2bfd5 tests/test-export
--- a/tests/test-export Sat Nov 08 00:29:04 2008 +0100
+++ b/tests/test-export Sun Nov 09 19:19:21 2008 +0900
@@ -16,6 +16,6 @@
 
 echo "# exporting 4 changesets to a file"
 hg export -o export_internal 1 2 3 4
-grep HG export_internal | wc -l
+echo `grep HG export_internal | wc -l`
 echo "# exporting 4 changesets to a file"
-hg export 1 2 3 4 | grep HG | wc -l
+echo `hg export 1 2 3 4 | grep HG | wc -l`

See also:
http://www.selenic.com/mercurial/wiki/index.cgi/WritingTests

----------
messages: 7873
nosy: akitada
priority: bug
status: unread
title: test-export fails on FreeBSD/Mac OS X

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1383>
____________________________________________________



More information about the Mercurial-devel mailing list