Set LLDB_SESSION_DIRNAME to absolute path

This is to ensure that session files are written to the correct
directory if the -r option is given.

llvm-svn: 133483
This commit is contained in:
Peter Collingbourne 2011-06-20 23:55:53 +00:00
parent 3729225576
commit 6f2b85221d
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ if not sdir_name:
# The windows platforms don't like ':' in the pathname.
timestamp = datetime.datetime.now().strftime("%Y-%m-%d-%H_%M_%S")
sdir_name = timestamp
os.environ["LLDB_SESSION_DIRNAME"] = sdir_name
os.environ["LLDB_SESSION_DIRNAME"] = os.path.join(os.getcwd(), sdir_name)
sys.stderr.write("\nSession logs for test failures/errors/unexpected successes"
" will go into directory '%s'\n" % sdir_name)