From 74fb054b5b9540d3ba4ab637a6f9664aaff973c4 Mon Sep 17 00:00:00 2001 From: liangxin1300 Date: Wed, 29 Mar 2023 10:59:55 +0800 Subject: [PATCH] Dev: behave: save stderr when running command on remote --- test/features/steps/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/features/steps/utils.py b/test/features/steps/utils.py index b52d2a75f0..e1868fed22 100644 --- a/test/features/steps/utils.py +++ b/test/features/steps/utils.py @@ -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):