Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for remote ledger editor launch #21

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion massa_test_framework/ledger_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def __init__(self, server: Server, compile_unit: CompileUnit):

def _install(self) -> Path | RemotePath:
tmp_folder = self.server.mkdtemp(prefix="massa_ledger_editor_")
# print(f"Creating folder: {tmp_folder}")
self.server.mkdir(tmp_folder)
repo = self.compile_unit.repo

for to_create in self._to_create:
Expand All @@ -40,10 +42,12 @@ def _install(self) -> Path | RemotePath:
for filename, to_install in self._to_install.items():
src = repo / to_install
if filename == "massa-ledger-editor":
dst = tmp_folder
dst = tmp_folder / filename
else:
dst = tmp_folder / to_install
# print(f"Creating folder: {dst.parent}")
self.server.mkdir(dst.parent)
# print(f"Copying {src} ({type(src)}) to {dst} ({type(dst)})...")
copy_file(src, dst)

return tmp_folder
Expand Down
Loading