================ @@ -743,6 +743,20 @@ def getBuildArtifact(self, name="a.out"): """Return absolute path to an artifact in the test's build directory.""" return os.path.join(self.getBuildDir(), name) + def get_process_working_directory(self): + """Get the working directory that should be used when launching processes for local or remote processes.""" + if lldb.remote_platform: + # Remote tests set the platform working directory up in + # TestBase.setUp() + return lldb.remote_platform.GetWorkingDirectory() + else: + # local tests change directory into each test subdirectory + return self.getBuildDir() + + def getWorkingDirArtifact(self, name="a.out"): + """Return absolute path to an artifact in the test's working directory.""" + return os.path.join(self.get_process_working_directory(), name) ---------------- sga-sc wrote:
Addressed https://github.com/llvm/llvm-project/pull/131293 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits