summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/SATestUpdateDiffs.py
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
commitdc0abcb87bee0abfcc195d8b4665d197f1724737 (patch)
treeb38624764011d0888ca7de17456ace467f814e31 /clang/utils/analyzer/SATestUpdateDiffs.py
parent86ed8e58306dbb6f7a52508f2641f12877e2e01b (diff)
downloadbcm5719-llvm-dc0abcb87bee0abfcc195d8b4665d197f1724737.tar.gz
bcm5719-llvm-dc0abcb87bee0abfcc195d8b4665d197f1724737.zip
[analyzer] [tests] Create a directory for the log file
llvm-svn: 326408
Diffstat (limited to 'clang/utils/analyzer/SATestUpdateDiffs.py')
-rwxr-xr-xclang/utils/analyzer/SATestUpdateDiffs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/utils/analyzer/SATestUpdateDiffs.py b/clang/utils/analyzer/SATestUpdateDiffs.py
index 8cda8d16b25..92bbd83172e 100755
--- a/clang/utils/analyzer/SATestUpdateDiffs.py
+++ b/clang/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
OpenPOWER on IntegriCloud