Skip to content

Commit

Permalink
improve remote access assertion error message
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Jul 26, 2024
1 parent 050bf78 commit e16aba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/RobotFramework/libraries/ThinEdgeIO/ThinEdgeIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,11 @@ def execute_remote_access_command(
proc.wait(timeout)

stdout = proc.stdout.read()
stderr = proc.stderr.read()
if exp_exit_code is not None:
assert (
proc.returncode == exp_exit_code
), f"Failed to connect via remote access.\n{stdout}"
), f"Failed to connect via remote access.\nstdout: <<EOT{stdout}\nEOT\n\nstderr <<EOT\n{stderr}\nEOT"

log.info(f"Command:\n%s", stdout)
return stdout
Expand Down

0 comments on commit e16aba6

Please sign in to comment.