summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-03-01 02:18:54 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-03-01 02:18:54 +0000
commitb7f026ae77d2cb0cd10834b61aac0037cfcff2bd (patch)
treeb57f0d5b4c2f4deb3e73dda9c8fb35e75369455c
parent8066b2f34dffb19b8069211639c586afb06e3fe4 (diff)
[analyzer] [tests] Create a directory for the log file
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326408 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/analyzer/SATestUpdateDiffs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/analyzer/SATestUpdateDiffs.py b/utils/analyzer/SATestUpdateDiffs.py
index 8cda8d16b2..92bbd83172 100755
--- a/utils/analyzer/SATestUpdateDiffs.py
+++ b/utils/analyzer/SATestUpdateDiffs.py
@@ -35,6 +35,8 @@ def updateReferenceResults(ProjName, ProjBuildMode):
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