If a full path to a compiler is provided on the
authorSean Callanan <scallanan@apple.com>
Tue, 16 Oct 2012 18:22:04 +0000 (18:22 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 16 Oct 2012 18:22:04 +0000 (18:22 +0000)
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.

llvm-svn: 166038

lldb/test/lldbtest.py

index b32ae95..7353e22 100644 (file)
@@ -801,7 +801,7 @@ 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(), 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()