[LNT] r222454 - When we die from server error, show it
Chris Matthews
cmatthews5 at apple.com
Thu Nov 20 13:16:22 PST 2014
Author: cmatthews
Date: Thu Nov 20 15:16:22 2014
New Revision: 222454
URL: http://llvm.org/viewvc/llvm-project?rev=222454&view=rev
Log:
When we die from server error, show it
Modified:
lnt/trunk/lnt/tests/nt.py
Modified: lnt/trunk/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/nt.py?rev=222454&r1=222453&r2=222454&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/nt.py (original)
+++ lnt/trunk/lnt/tests/nt.py Thu Nov 20 15:16:22 2014
@@ -1275,8 +1275,15 @@ def _process_reruns(config, server_reply
"""Rerun each benchmark which the server reported "changed", N more
times.
"""
- server_results = server_reply['test_results'][0]['results']
-
+ try:
+ server_results = server_reply['test_results'][0]['results']
+ except KeyError:
+ # Server might send us back an error.
+ if server_reply.get('error', None):
+ warning("Server returned an error:" +
+ server_reply['error'])
+ fatal("No Server results. Cannot do reruns.")
+ logging.fatal()
# Holds the combined local and server results.
collated_results = dict()
More information about the llvm-commits
mailing list