Skip to content

Commit eeaf976

Browse files
authored
Merge pull request #561 from jongleur1983/558-hideCmdWindowsInRunTests
#558: hide console windows during run-tests
2 parents a844268 + b790c1f commit eeaf976

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,16 @@ public static void RunDumpJpegCoeffsTool(string sourceFile, string destFile)
6565
}
6666

6767
string args = $@"""{sourceFile}"" ""{destFile}""";
68-
var process = Process.Start(DumpToolFullPath, args);
68+
var process = new Process
69+
{
70+
StartInfo =
71+
{
72+
FileName = DumpToolFullPath,
73+
Arguments = args,
74+
WindowStyle = ProcessWindowStyle.Hidden
75+
}
76+
};
77+
process.Start();
6978
process.WaitForExit();
7079
}
7180

0 commit comments

Comments
 (0)