From 8e6b39d80e9f8db8389bd2a8106d0f64b91c19e9 Mon Sep 17 00:00:00 2001 From: Axel Souchet <0vercl0k@tuxfamily.org> Date: Sun, 9 Sep 2018 06:11:00 -0700 Subject: Adds Windows support and AppVeyor CI (#835) * Get miasm to work on Windows, also add AppVeyor CI * Fix gcc jitter on Linux * Make the dse_crackme tests work on Windows * calling build and then install is less confusing than install twice * fix os.rename race condition on Windows * clean it up * Clean up after the unused cl.exe's artifacts * Use is_win instead of an additional check * Fix issue on Windows where 'w' and 'wb' modes are different * Address review feedback * setuptools is actually not required, so reverting --- test/utils/cosmetics.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/utils/cosmetics.py') diff --git a/test/utils/cosmetics.py b/test/utils/cosmetics.py index d870507b..e80e1f09 100644 --- a/test/utils/cosmetics.py +++ b/test/utils/cosmetics.py @@ -1,5 +1,7 @@ import os +import platform +is_win = platform.system() == "Windows" def getTerminalSize(): "Return the size of the terminal : COLUMNS, LINES" @@ -37,6 +39,12 @@ colors = {"red": "\033[91;1m", "lightcyan": "\033[96m", "blue": "\033[94;1m"} +if is_win: + colors = {"red": "", + "end": "", + "green": "", + "lightcyan": "", + "blue": ""} def write_colored(text, color, already_printed=0): text_colored = colors[color] + text + colors["end"] -- cgit 1.4.1