Skip to content

Commit

Permalink
Dev: behave: save stderr when running command on remote
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Mar 29, 2023
1 parent 9a683c1 commit 74fb054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/features/steps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ def run_command_local_or_remote(context, cmd, addr, exit_on_fail=True):
context.failed = True
else:
out = utils.to_ascii(results[0][1][1])
err = utils.to_ascii(results[0][1][2])
context.stdout = out
context.stderr = err
context.return_code = 0
return 0, out, None
return 0, out, err


def check_service_state(context, service_name, state, addr):
Expand Down

0 comments on commit 74fb054

Please sign in to comment.