all repos — tint2 @ b4610fcb6e4e90b28648679d593a3f8605b861a6

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

CI script: remove ANSI color codes
o9000 mrovi9000@gmail.com
commit

b4610fcb6e4e90b28648679d593a3f8605b861a6

parent

eb0e6765f98a788c8a7efc63d01da316b3c1c5be

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M test/regression.pytest/regression.py

@@ -10,6 +10,7 @@ sys.setdefaultencoding('utf8')

import argparse import datetime import os +import re import signal import subprocess import time

@@ -37,6 +38,10 @@

def print_err(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) + + +def clear_ansi_codes(s): + return re.sub(r"\x1B\[[0-9;]*[a-zA-Z]", "", s) def run(cmd, output=False):

@@ -188,6 +193,7 @@ # Collect info

mem, mem_detail = get_mem_usage(tint2.pid) stop(tint2) out, _ = tint2.communicate() + out = clear_ansi_codes(out) exitcode = tint2.returncode if exitcode != 0 and exitcode != 23: print("tint2 crashed with exit code {0}!".format(exitcode))

@@ -241,6 +247,7 @@ time.sleep(1)

continue tint2.stop() out, _ = tint2.communicate() + out = clear_ansi_codes(out) exitcode = tint2.returncode if exitcode != 0 and exitcode != 23: print("tint2 crashed with exit code {0}!".format(exitcode))