File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
lldb/packages/Python/lldbsuite/test Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1654,6 +1654,22 @@ def find_library_callable(test):
1654
1654
)
1655
1655
1656
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
+
1657
1673
def read_file_on_target (test , remote ):
1658
1674
if lldb .remote_platform :
1659
1675
local = test .getBuildArtifact ("file_from_target" )
You can’t perform that action at this time.
0 commit comments