r326408 - [analyzer] [tests] Create a directory for the log file
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 28 18:18:55 PST 2018
Author: george.karpenkov
Date: Wed Feb 28 18:18:54 2018
New Revision: 326408
URL: http://llvm.org/viewvc/llvm-project?rev=326408&view=rev
Log:
[analyzer] [tests] Create a directory for the log file
Modified:
cfe/trunk/utils/analyzer/SATestUpdateDiffs.py
Modified: cfe/trunk/utils/analyzer/SATestUpdateDiffs.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestUpdateDiffs.py?rev=326408&r1=326407&r2=326408&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestUpdateDiffs.py (original)
+++ cfe/trunk/utils/analyzer/SATestUpdateDiffs.py Wed Feb 28 18:18:54 2018
@@ -35,6 +35,8 @@ def updateReferenceResults(ProjName, Pro
sys.exit(1)
BuildLogPath = SATestBuild.getBuildLogPath(RefResultsPath)
+ Dirname = os.path.dirname(os.path.abspath(BuildLogPath))
+ runCmd("mkdir -p '%s'" % Dirname)
with open(BuildLogPath, "wb+") as PBuildLogFile:
# Remove reference results: in git, and then again for a good measure
# with rm, as git might not remove things fully if there are empty
More information about the cfe-commits
mailing list