diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -656,15 +656,15 @@ def getSourceDir(self): """Return the full path to the current test.""" - return os.path.join(os.environ["LLDB_TEST"], self.mydir) + return os.path.realpath(os.path.join(os.environ["LLDB_TEST"], self.mydir)) def getBuildDirBasename(self): return self.__class__.__module__ + "." + self.testMethodName def getBuildDir(self): """Return the full path to the current test.""" - return os.path.join(os.environ["LLDB_BUILD"], self.mydir, - self.getBuildDirBasename()) + return os.path.realpath(os.path.join(os.environ["LLDB_BUILD"], self.mydir, + self.getBuildDirBasename())) def makeBuildDir(self):