[LNT] r314962 - tests/compile.py: Print stdout/stderr log in the error case
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 4 18:48:04 PDT 2017
Author: matze
Date: Wed Oct 4 18:48:04 2017
New Revision: 314962
URL: http://llvm.org/viewvc/llvm-project?rev=314962&view=rev
Log:
tests/compile.py: Print stdout/stderr log in the error case
Modified:
lnt/trunk/lnt/tests/compile.py
Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=314962&r1=314961&r2=314962&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed Oct 4 18:48:04 2017
@@ -125,6 +125,12 @@ def get_runN_test_data(name, variables,
if data.get('version') != 0:
raise ValueError('unknown runN data format')
data_samples = data.get('samples')
+ else:
+ # Print stdout/stderr log if available
+ if stdout is not None:
+ g_log.info("%s:\n--\n%s\n--" % (stdout, open(stdout).read()))
+ if stderr is not None:
+ g_log.info("%s:\n--\n%s\n--" % (stderr, open(stderr).read()))
keys = []
if not only_mem:
keys.extend([('user', 1,), ('sys', 2,), ('wall', 3,)])
More information about the llvm-commits
mailing list