From f9e1845f9ac43e363c1507d7c0d56289df8cfa89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20F=C3=B6hr?= Date: Fri, 20 Sep 2024 14:14:10 +0300 Subject: [PATCH] fix inv test on Windows --- tasks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 32e5cad5..53d60006 100644 --- a/tasks.py +++ b/tasks.py @@ -51,11 +51,13 @@ def get_run_with_print(c): def run_with_print(cmd: str, ignore_errors: bool = False) -> Result: print("Running:", Fore.YELLOW, cmd, Fore.RESET) + + unix_like = is_unix_like_foss(CURRENT_PLATFORM) res: Result = c.run( cmd, - pty=is_unix_like_foss(CURRENT_PLATFORM), + pty=unix_like, warn=ignore_errors, - shell=get_shell(), + shell=get_shell() if unix_like else None, ) return res