================
@@ -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)
----------------
labath wrote:
This seems a bit... magical. Can we just have the caller specify a full path to
the thing it wants to install? `self.getBuildArtifact` is not that much extra
typing.
https://github.com/llvm/llvm-project/pull/91944
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits