From 756acbaa0e76c17426983863099d42449b0a6729 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 14 Oct 2014 21:54:14 +0000 Subject: [PATCH] Fix a path concatenation issue related to windows paths. llvm-svn: 219730 --- lldb/test/lldbtest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index a06990c..deedf2a 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1148,7 +1148,11 @@ class Base(unittest2.TestCase): os.environ["LLDB_SESSION_DIRNAME"]) if not os.path.isdir(dname): os.mkdir(dname) - fname = os.path.join(dname, "%s-%s-%s-%s.log" % (prefix, self.getArchitecture(), "_".join(self.getCompiler().split('/')), self.id())) + compiler = self.getCompiler() + if compiler[1] == ':': + compiler = compiler[2:] + + fname = os.path.join(dname, "%s-%s-%s-%s.log" % (prefix, self.getArchitecture(), "_".join(compiler.split(os.path.sep)), self.id())) with open(fname, "w") as f: import datetime print >> f, "Session info generated @", datetime.datetime.now().ctime() -- 2.7.4