[LNT] r266680 - Collect build log in LNT diagnostics
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 14:49:18 PDT 2016
Author: cmatthews
Date: Mon Apr 18 16:49:18 2016
New Revision: 266680
URL: http://llvm.org/viewvc/llvm-project?rev=266680&view=rev
Log:
Collect build log in LNT diagnostics
Modified:
lnt/trunk/lnt/tests/test_suite.py
Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=266680&r1=266679&r2=266680&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Mon Apr 18 16:49:18 2016
@@ -716,10 +716,19 @@ class TestSuiteTest(BuiltinTest):
local_path = os.path.join(path, bm_path)
+ make_deps = [self.opts.make, "VERBOSE=1", "timeit-target", "timeit-host", "fpcmp-host"]
+ note(" ".join(make_deps))
+ p = subprocess.Popen(make_deps, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ std_out, std_err = p.communicate()
+ note(std_out)
+
make_save_temps = [self.opts.make, "VERBOSE=1", short_name]
note(" ".join(make_save_temps))
- out = subprocess.check_output(make_save_temps)
- note(out)
+ p = subprocess.Popen(make_save_temps, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ std_out, std_err = p.communicate()
+ note(std_out)
+ with open(report_path + "/build.log", 'w') as f:
+ f.write(std_out)
# Executable(s) and test file:
shutil.copy(os.path.join(local_path, short_name), report_path)
shutil.copy(os.path.join(local_path, short_name + ".test"), report_path)
More information about the llvm-commits
mailing list