Patchwork D10475: streamclone: check the errors log in tests

login
register
mail settings
Submitter phabricator
Date April 20, 2021, 4:09 a.m.
Message ID <differential-rev-PHID-DREV-45uvc4auicc65jaroeb2-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48792/
State Superseded
Headers show

Comments

phabricator - April 20, 2021, 4:09 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Code can be buggy, in that case having error message tend to help.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10475

AFFECTED FILES
  tests/test-clone-uncompressed.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -169,7 +169,7 @@ 
 
   $ killdaemons.py
   $ cd server
-  $ hg serve -p $HGPORT -d --pid-file=hg.pid
+  $ hg serve -p $HGPORT -d --pid-file=hg.pid --error errors.txt
   $ cat hg.pid > $DAEMON_PIDS
   $ cd ..
 
@@ -184,6 +184,7 @@ 
   transferred 93.5 KB in * seconds (* */sec) (glob) (zstd !)
   searching for changes
   no changes found
+  $ cat server/errors.txt
 #endif
 #if stream-bundle2
   $ hg clone --stream -U http://localhost:$HGPORT clone1
@@ -205,6 +206,7 @@ 
   rbc-revs-v1
   tags2
   tags2-served
+  $ cat server/errors.txt
 #endif
 
 getbundle requests with stream=1 are uncompressed