|
From: <qh...@us...> - 2010-03-05 09:35:42
|
Revision: 1915
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=1915&view=rev
Author: qhuang8
Date: 2010-03-05 09:35:36 +0000 (Fri, 05 Mar 2010)
Log Message:
-----------
Temporarily turn on the build report feature and dump the report contents to console so that it can be caught by build log.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/build/BuildReport.py
Modified: trunk/BaseTools/Source/Python/build/BuildReport.py
===================================================================
--- trunk/BaseTools/Source/Python/build/BuildReport.py 2010-03-05 09:01:51 UTC (rev 1914)
+++ trunk/BaseTools/Source/Python/build/BuildReport.py 2010-03-05 09:35:36 UTC (rev 1915)
@@ -1374,6 +1374,10 @@
# @param ReportType The kind of report items in the final report file
#
def __init__(self, ReportFile, ReportType):
+ # @attention Temporarily turn on the build report feature for debug and diagnose purpose.
+ if ReportFile == None:
+ ReportFile = "Report.txt"
+
self.ReportFile = ReportFile
if ReportFile:
self.ReportList = []
@@ -1422,6 +1426,12 @@
EdkLogger.error("BuildReport", CODE_ERROR, "Unknown fatal error when generating build report", ExtraData=self.ReportFile, RaiseError=False)
EdkLogger.quiet("(Python %s on %s\n%s)" % (platform.python_version(), sys.platform, traceback.format_exc()))
File.close()
+
+ # @attention Temporarily dump the context of report file so it can be caught in build log for debug
+ # and diagnose purpose.
+ EdkLogger.quiet("==================Dump Report Start===================================")
+ EdkLogger.quiet(open(self.ReportFile).read())
+ EdkLogger.quiet("==================Dump Report End=====================================")
# This acts like the main() function for the script, unless it is 'import'ed into another script.
if __name__ == '__main__':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|