From 329f284a6faef333d45ae90b4f69ef54991971b6 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 7 May 2018 19:49:32 +0200 Subject: [PATCH] #558: hide console windows during run-tests --- .../Formats/Jpg/Utils/LibJpegTools.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs b/tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs index 9ce027e30..fd78d2ece 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs @@ -65,7 +65,16 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils } string args = $@"""{sourceFile}"" ""{destFile}"""; - var process = Process.Start(DumpToolFullPath, args); + var process = new Process + { + StartInfo = + { + FileName = DumpToolFullPath, + Arguments = args, + WindowStyle = ProcessWindowStyle.Hidden + } + }; + process.Start(); process.WaitForExit(); }