test-simple4server: add error output for http
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 Aug 2014 18:28:09 +0200
changeset 1087 82873af0cf10
parent 1086 96b9e0c31cc1
child 1088 528c066cd51c
test-simple4server: add error output for http This is useful in case of failure.
tests/test-simple4server.t
--- a/tests/test-simple4server.t	Fri Aug 29 10:44:40 2014 +0200
+++ b/tests/test-simple4server.t	Wed Aug 27 18:28:09 2014 +0200
@@ -29,6 +29,7 @@
   no changes found
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ cat ./errors.log
   $ echo "[extensions]" >> ./client/.hg/hgrc
   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> ./client/.hg/hgrc
   $ cp -r client other
@@ -50,6 +51,7 @@
   pulling from http://localhost:$HGPORT/
   searching for changes
   no changes found
+  $ cat ../errors.log
   $ hg pull -R ../other
   pulling from http://localhost:$HGPORT/
   requesting all changes
@@ -59,11 +61,13 @@
   added 2 changesets with 2 changes to 2 files
   pull obsolescence markers
   (run 'hg update' to get a working copy)
+  $ cat ../errors.log
   $ hg push -R ../other
   pushing to http://localhost:$HGPORT/
   searching for changes
   no changes found
   [1]
+  $ cat ../errors.log
 
 Capacity testing
 ===================
@@ -92,11 +96,13 @@
   remote: adding file changes
   remote: added 1 changesets with 1 changes to 1 files (+1 heads)
   pushing 2 obsolescence markers (171 bytes)
+  $ cat ../errors.log
   $ hg push
   pushing to http://localhost:$HGPORT/
   searching for changes
   no changes found
   [1]
+  $ cat ../errors.log
 
 Pull
 =============
@@ -111,10 +117,12 @@
   pull obsolescence markers
   2 obsolescence markers added
   (run 'hg heads' to see heads)
+  $ cat ../errors.log
   $ hg -R ../other pull
   pulling from http://localhost:$HGPORT/
   searching for changes
   no changes found
+  $ cat ../errors.log
 
   $ cd ..