commit 134c4da1b3591f606ca4a0c635e67ccd49f241ec
Author: Jiri Pirko <jpirko(a)redhat.com>
Date: Thu Jun 30 10:25:52 2011 +0200
NetTestController: print command result data if any
Signed-off-by: Jiri Pirko <jpirko(a)redhat.com>
NetTest/NetTestController.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/NetTest/NetTestController.py b/NetTest/NetTestController.py
index b0b2437..7161fd7 100644
--- a/NetTest/NetTestController.py
+++ b/NetTest/NetTestController.py
@@ -13,7 +13,7 @@ jpirko(a)redhat.com (Jiri Pirko)
import logging
import socket
-from pprint import pprint
+from pprint import pprint, pformat
from Common.XmlRpc import ServerProxy
from NetTestParse import NetTestParse
from Common.SlaveUtils import prepare_client_session
@@ -163,6 +163,9 @@ class NetTestController:
logging.info("Executing command: [%s]" % str_command(command))
cmd_res = self._run_command(command)
logging.debug("Result: %s" % str(cmd_res))
+ if "res_data" in cmd_res:
+ res_data = pformat(cmd_res["res_data"])
+ logging.info("Result data: %s" % (res_data))
if not cmd_res["passed"]:
logging.error("Command failed - command: [%s], "
"Error message: \"%s\""