[Lldb-commits] [lldb] [lldb] Add lldbutil.target_install() helper (PR #91944)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Mon May 13 09:26:19 PDT 2024


================
@@ -1654,6 +1654,26 @@ def find_library_callable(test):
     )
 
 
+def target_install(test, filename=None, path=None):
+    test.assertTrue(filename or path, "filename or path must be specified.")
+    if filename is None:
+        filename = os.path.basename(path)
+    if path is None:
+        path = test.getBuildArtifact(filename)
----------------
slydiman wrote:

Ok. I kept only the full path parameter. Updated. Thanks.

https://github.com/llvm/llvm-project/pull/91944


More information about the lldb-commits mailing list