[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lnst-developers
Subject:    [patch lnst] ExecCommand: leave report blank and avoid putting whole stdout there
From:       Jiri Pirko <jiri () resnulli ! us>
Date:       2016-08-16 16:48:57
Message-ID: 1471366137-19601-1-git-send-email-jiri () resnulli ! us
[Download RAW message or body]

From: Jiri Pirko <jiri@mellanox.com>

no need to put stdout there. Also this fixes json stdouwith keys
unusable as element names in xml.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
---
 lnst/Common/NetTestCommand.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index 52f2a73..f91cc37 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -419,6 +419,9 @@ class NetTestCommandExec(NetTestCommandGeneric):
             else:
                 self.set_fail(res_data)
 
+    def format_res_data(self, res_data, level=0):
+        return ""
+
     def _format_cmd_res_header(self):
         cmd_type = self._command["type"]
         cmd_val = self._command["command"]
-- 
2.5.5
_______________________________________________
LNST-developers mailing list
lnst-developers@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahosted.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic