changeset 51839:17e2d5c46716 stable

test: display server error log in test-profile.t This will help us to catch error with Python 3.12
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 11 Sep 2024 00:41:37 +0200
parents 6388fd855f66
children 1bb71046f5e0
files tests/test-profile.t
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-profile.t	Thu Sep 05 15:37:14 2024 -0400
+++ b/tests/test-profile.t	Wed Sep 11 00:41:37 2024 +0200
@@ -54,9 +54,17 @@
 
 Profiling of HTTP requests works
 
-  $ prof --config profiling.format=text --config profiling.output=../profile.log serve -d -p $HGPORT --pid-file ../hg.pid -A ../access.log
+  $ prof \
+  >   --config profiling.format=text \
+  >   --config profiling.output=../profile.log \
+  >  serve -d \
+  >    -p $HGPORT \
+  >    --pid-file ../hg.pid \
+  >    -A ../access.log \
+  >    --errorlog ../error.log
   $ cat ../hg.pid >> $DAEMON_PIDS
   $ hg -q clone -U http://localhost:$HGPORT ../clone
+  $ cat ../error.log
 
 A single profile is logged because file logging doesn't append
   $ grep CallCount ../profile.log | wc -l