Fri, Oct 03, 2014 at 04:40:32PM CEST, jtluka(a)redhat.com wrote:
This patch enables a user to work with the stdout and stderr from
within
the python task after a command is run. A user must state that he's
interested in these outputs by statement similar to following,
res = machine1.run("rpm -qa kernel", save_output="yes")
Later, the outputs can be retrieved by
stdout = res.get_result()["res_data"]["stdout"]
stderr = res.get_result()["res_data"]["stderr"]
This is available for NetTestCommandExec class only.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
applied