Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[tesh] Remove ignored lines *before* trimming the output.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 12 Mar 2022 20:30:21 +0000 (21:30 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 12 Mar 2022 20:37:10 +0000 (21:37 +0100)
[ci-skip]

tools/tesh/tesh.py

index 8821279..0d2825f 100755 (executable)
@@ -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.