From 40bc2992b2ce6178f09f8ed90a5b5df0c87bdc7a Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sun, 11 Feb 2024 02:00:53 -0600 Subject: [PATCH] re-add something that's useful during testing --- ci/test-all-configs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/test-all-configs.py b/ci/test-all-configs.py index 1930bfb..a3ac065 100644 --- a/ci/test-all-configs.py +++ b/ci/test-all-configs.py @@ -110,7 +110,7 @@ def output_matches(raw_output: str, params: Tuple[str]): return not errored -def run_command(*args: List[str]): +def run_command(*args: List[str], always_output=False): global failed print(f"{Fore.CYAN}{Style.BRIGHT}Running Command \"{' '.join(args)}\"{Style.RESET_ALL}") p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) @@ -126,6 +126,11 @@ def run_command(*args: List[str]): return False else: print(f"{Fore.GREEN}{Style.BRIGHT}Command succeeded{Style.RESET_ALL}") + if always_output: + print("stdout:") + print(stdout.decode("utf-8"), end="") + print("stderr:") + print(stderr.decode("utf-8"), end="") return True def run_test(test_binary, params: Tuple[str]):