Skip to content

Commit

Permalink
Fix crash if test is stopped during SSH execution
Browse files Browse the repository at this point in the history
Sometimes happens that test is stopped during execution, causing an
internal exception that turns out using a stdout variable initialized
with None. Then this will crash kirk due to unhandled TypeError.
  • Loading branch information
acerv committed Mar 19, 2024
1 parent 5343375 commit 1c7c000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkirk/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ async def run_command(
cmd = self._create_command(command, cwd, env)
ret = None
start_t = 0
stdout = None
stdout = []
panic = False
channel = None
session = None
Expand Down

0 comments on commit 1c7c000

Please sign in to comment.