From b927fa252c7ae8e3052221b470fad9adc6a090cd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 12 Mar 2022 21:30:21 +0100 Subject: [PATCH] [tesh] Remove ignored lines *before* trimming the output. [ci-skip] --- tools/tesh/tesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 8821279506..0d2825fff1 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -429,9 +429,9 @@ class Cmd: logs.append("(ignoring the output of <{cmd}> as requested)".format(cmd=cmd_name)) else: stdouta = stdout_data.split("\n") + stdouta = self.remove_ignored_lines(stdouta) while stdouta and stdouta[-1] == "": del stdouta[-1] - stdouta = self.remove_ignored_lines(stdouta) stdcpy = stdouta[:] # Mimic the "sort" bash command, which is case unsensitive. -- 2.20.1