Skip to content

Commit

Permalink
Merge pull request #1163 from liangxin1300/20230329_behave
Browse files Browse the repository at this point in the history
Dev: behave: save stderr when running command on remote
  • Loading branch information
liangxin1300 authored Mar 29, 2023
2 parents 0b20d25 + 74fb054 commit 6d95249
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 6d95249

Please sign in to comment.