We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9837a1c commit c441aa5Copy full SHA for c441aa5
lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -1654,6 +1654,22 @@ def find_library_callable(test):
1654
)
1655
1656
1657
+def install_to_target(test, path):
1658
+ if lldb.remote_platform:
1659
+ filename = os.path.basename(path)
1660
+ remote_path = append_to_process_working_directory(test, filename)
1661
+ err = lldb.remote_platform.Install(
1662
+ lldb.SBFileSpec(path, True), lldb.SBFileSpec(remote_path, False)
1663
+ )
1664
+ if err.Fail():
1665
+ raise Exception(
1666
+ "remote_platform.Install('%s', '%s') failed: %s"
1667
+ % (path, remote_path, err)
1668
1669
+ path = remote_path
1670
+ return path
1671
+
1672
1673
def read_file_on_target(test, remote):
1674
if lldb.remote_platform:
1675
local = test.getBuildArtifact("file_from_target")
0 commit comments