From 020b98d0499beca34d2e3774f70690d8866333ca Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Tue, 21 Apr 2020 18:34:54 +0100 Subject: [PATCH] [PYNQ] bugfix: use specified password for remote exec --- src/finn/core/remote_exec.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/finn/core/remote_exec.py b/src/finn/core/remote_exec.py index e78f07b9f..eff9cea29 100644 --- a/src/finn/core/remote_exec.py +++ b/src/finn/core/remote_exec.py @@ -62,9 +62,15 @@ def remote_exec(model, execution_context): process_compile.communicate() cmd = ( - "sshpass -p {} ssh {}@{} " - '"cd {}/{}; echo "xilinx" | sudo -S python3.6 driver.py"' - ).format(pynq_password, pynq_username, pynq_ip, pynq_target_dir, deployment_folder) + "sshpass -p {} ssh {}@{} " '"cd {}/{}; echo "{}" | sudo -S python3.6 driver.py"' + ).format( + pynq_password, + pynq_username, + pynq_ip, + pynq_target_dir, + deployment_folder, + pynq_password, + ) bash_command = ["/bin/bash", "-c", cmd] process_compile = subprocess.Popen(bash_command, stdout=subprocess.PIPE) process_compile.communicate() -- GitLab