Skip to content

Commit 6f2b852

Browse files
committed
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
1 parent 3729225 commit 6f2b852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/dotest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ def getMyCommandLine():
822822
# The windows platforms don't like ':' in the pathname.
823823
timestamp = datetime.datetime.now().strftime("%Y-%m-%d-%H_%M_%S")
824824
sdir_name = timestamp
825-
os.environ["LLDB_SESSION_DIRNAME"] = sdir_name
825+
os.environ["LLDB_SESSION_DIRNAME"] = os.path.join(os.getcwd(), sdir_name)
826826

827827
sys.stderr.write("\nSession logs for test failures/errors/unexpected successes"
828828
" will go into directory '%s'\n" % sdir_name)

0 commit comments

Comments
 (0)