Skip to content
Snippets Groups Projects
Commit 8563b2ec authored by Yifan Zhao's avatar Yifan Zhao
Browse files

No timeout in ssh tests

parent f9b2902b
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ def run_test_over_ssh(host: str, password: str, working_dir: str, image_dir: Pat ...@@ -38,7 +38,7 @@ def run_test_over_ssh(host: str, password: str, working_dir: str, image_dir: Pat
print(f"Running test on remote host {host}...") print(f"Running test on remote host {host}...")
args = options.split(" ") + [host] args = options.split(" ") + [host]
child = pexpect.spawn("ssh", args, timeout=60) child = pexpect.spawn("ssh", args, timeout=None)
child.expect(r"password:") child.expect(r"password:")
child.sendline(password) child.sendline(password)
child.expect("# ") # The bash prompt child.expect("# ") # The bash prompt
...@@ -49,7 +49,7 @@ def run_test_over_ssh(host: str, password: str, working_dir: str, image_dir: Pat ...@@ -49,7 +49,7 @@ def run_test_over_ssh(host: str, password: str, working_dir: str, image_dir: Pat
remote_path = f"{image_dir.name}/{image.name}" remote_path = f"{image_dir.name}/{image.name}"
print(f"Sending {image.name} to run") print(f"Sending {image.name} to run")
child.sendline(f"./nvdla_runtime --loadable {BUFFER_NAME} --image {remote_path} --rawdump") child.sendline(f"./nvdla_runtime --loadable {BUFFER_NAME} --image {remote_path} --rawdump")
child.expect("# ") child.expect("Test pass")
child.sendline("cat output.dimg") child.sendline("cat output.dimg")
child.expect("# ") child.expect("# ")
result_lines = child.before.decode().splitlines() result_lines = child.before.decode().splitlines()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment