From: Arnaud Giersch Date: Sat, 12 Mar 2022 20:30:21 +0000 (+0100) Subject: [tesh] Remove ignored lines *before* trimming the output. X-Git-Tag: v3.31~144 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b927fa252c7ae8e3052221b470fad9adc6a090cd [tesh] Remove ignored lines *before* trimming the output. [ci-skip] --- 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.