diff --git a/lnst/Tests/Ping.py b/lnst/Tests/Ping.py index d5cf6aab..434fb8e3 100644 --- a/lnst/Tests/Ping.py +++ b/lnst/Tests/Ping.py @@ -52,11 +52,13 @@ def run(self): except KeyboardInterrupt: pass + self._res_data["stdout"] = stdout + self._res_data["stderr"] = stderr + if ping_process.returncode > 1: self._res_data["msg"] = "returncode = {}".format(ping_process.returncode) logging.error(self._res_data["msg"]) if stderr != "": - self._res_data["stderr"] = stderr logging.error("errors reported by ping") logging.error(self._res_data["stderr"]) return False