Skip to content

Commit

Permalink
log the output of ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
vedpatwardhan committed Nov 3, 2023
1 parent 0e318d0 commit f590f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/auth/vm_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def _start_ssh_session(response, creds, username, passphrase):

# Execute the command on the instance in the background
command = "cd actions-runner; nohup ./run.sh"
channel.exec_command(command)
_, stdout, _ = channel.exec_command(command)
output = stdout.read()
print(f"ssh output {output}")

# Close the SSH session immediately and keep the channel open
ssh.close()
Expand Down

0 comments on commit f590f1e

Please sign in to comment.