diff --git a/lnst/Tests/Ping.py b/lnst/Tests/Ping.py index a91e4febe..434fb8e38 100644 --- a/lnst/Tests/Ping.py +++ b/lnst/Tests/Ping.py @@ -52,15 +52,19 @@ 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 + logging.debug(f"Ping stdout:\n{stdout}") + stat_pttr1 = r'(\d+) packets transmitted, (\d+) received' stat_pttr2 = r'rtt min/avg/max/mdev = (\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+) ms'