From 4ff86b36c2bc23e951ad696974fbd7a0dbccebb7 Mon Sep 17 00:00:00 2001 From: Pavel Borisov Date: Sat, 30 Dec 2023 03:48:29 +0100 Subject: [PATCH] try to suppress colored output in tests --- tests/Promote.NuGet.Tests/PromoteNugetProcessRunner.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Promote.NuGet.Tests/PromoteNugetProcessRunner.cs b/tests/Promote.NuGet.Tests/PromoteNugetProcessRunner.cs index ea1255f..5d40859 100644 --- a/tests/Promote.NuGet.Tests/PromoteNugetProcessRunner.cs +++ b/tests/Promote.NuGet.Tests/PromoteNugetProcessRunner.cs @@ -96,6 +96,10 @@ public static ProcessWrapper Run(params string[] arguments) ArgumentList = { "Promote.NuGet.dll" }, RedirectStandardOutput = true, RedirectStandardError = true, + Environment = + { + ["NO_COLOR"] = "1" + } }; foreach (var argument in arguments)