test: display server error log in test-profile.t stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 11 Sep 2024 00:41:37 +0200
branchstable
changeset 51839 17e2d5c46716
parent 51833 6388fd855f66
child 51840 1bb71046f5e0
test: display server error log in test-profile.t This will help us to catch error with Python 3.12
tests/test-profile.t
--- 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