[LNT] r310668 - Print server log when error exit detected
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 10 15:08:04 PDT 2017
Author: cmatthews
Date: Thu Aug 10 15:08:04 2017
New Revision: 310668
URL: http://llvm.org/viewvc/llvm-project?rev=310668&view=rev
Log:
Print server log when error exit detected
When the LNT server exits early, print the log into the test runner.
Modified:
lnt/trunk/tests/SharedInputs/server_wrapper.sh
Modified: lnt/trunk/tests/SharedInputs/server_wrapper.sh
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/SharedInputs/server_wrapper.sh?rev=310668&r1=310667&r2=310668&view=diff
==============================================================================
--- lnt/trunk/tests/SharedInputs/server_wrapper.sh (original)
+++ lnt/trunk/tests/SharedInputs/server_wrapper.sh Thu Aug 10 15:08:04 2017
@@ -36,7 +36,7 @@ main() {
# Poll the server until it is up and running
while ! curl http://localhost:${port_number}/ping -m1 -o/dev/null -s ; do
# Maybe server is totally dead.
- kill -0 ${pid} 2> /dev/null || { echo "Server exit detected"; break; }
+ kill -0 ${pid} 2> /dev/null || { echo "Server exit detected"; cat ${server_instance}/server_wrapper_runserver.log; break; }
# If not sleep and keep trying.
sleep 0.1
done
More information about the llvm-commits
mailing list