[Lldb-commits] [lldb] r166038 - /lldb/trunk/test/lldbtest.py
Sean Callanan
scallanan at apple.com
Tue Oct 16 11:22:04 PDT 2012
Author: spyffe
Date: Tue Oct 16 13:22:04 2012
New Revision: 166038
URL: http://llvm.org/viewvc/llvm-project?rev=166038&view=rev
Log:
If a full path to a compiler is provided on the
command line to dotest.py, replace / with _ in
the logfile names that mention that compiler so
that we don't try to put log files in weird
places.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=166038&r1=166037&r2=166038&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Oct 16 13:22:04 2012
@@ -801,7 +801,7 @@
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(), self.getCompiler(), self.id()))
+ fname = os.path.join(dname, "%s-%s-%s-%s.log" % (prefix, self.getArchitecture(), "_".join(self.getCompiler().split('/')), self.id()))
with open(fname, "w") as f:
import datetime
print >> f, "Session info generated @", datetime.datetime.now().ctime()
More information about the lldb-commits
mailing list