mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
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. llvm-svn: 166038
This commit is contained in:
parent
7b9eb5c64a
commit
794baf6fb7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user