@@ -32,18 +32,18 @@ public ExecuteResult Execute(ExecuteParameters executeParameters)
32
32
}
33
33
34
34
return Execute ( executeParameters . BenchmarkCase , executeParameters . BenchmarkId , executeParameters . Logger , executeParameters . BuildResult . ArtifactsPaths ,
35
- args , executeParameters . Diagnoser , executeParameters . Resolver , executeParameters . LaunchIndex ) ;
35
+ args , executeParameters . Diagnoser , executeParameters . Resolver , executeParameters . LaunchIndex , executeParameters . BuildResult . NoAcknowledgments ) ;
36
36
}
37
37
38
38
private ExecuteResult Execute ( BenchmarkCase benchmarkCase , BenchmarkId benchmarkId , ILogger logger , ArtifactsPaths artifactsPaths ,
39
- string args , IDiagnoser diagnoser , IResolver resolver , int launchIndex )
39
+ string args , IDiagnoser diagnoser , IResolver resolver , int launchIndex , bool noAcknowledgments )
40
40
{
41
41
try
42
42
{
43
- using ( var process = new Process { StartInfo = CreateStartInfo ( benchmarkCase , artifactsPaths , args , resolver ) } )
43
+ using ( var process = new Process { StartInfo = CreateStartInfo ( benchmarkCase , artifactsPaths , args , resolver , noAcknowledgments ) } )
44
44
using ( var consoleExitHandler = new ConsoleExitHandler ( process , logger ) )
45
45
{
46
- var loggerWithDiagnoser = new SynchronousProcessOutputLoggerWithDiagnoser ( logger , process , diagnoser , benchmarkCase , benchmarkId ) ;
46
+ var loggerWithDiagnoser = new SynchronousProcessOutputLoggerWithDiagnoser ( logger , process , diagnoser , benchmarkCase , benchmarkId , noAcknowledgments ) ;
47
47
48
48
diagnoser ? . Handle ( HostSignal . BeforeProcessStart , new DiagnoserActionParameters ( process , benchmarkCase , benchmarkId ) ) ;
49
49
@@ -89,13 +89,14 @@ private ExecuteResult Execute(Process process, BenchmarkCase benchmarkCase, Sync
89
89
launchIndex ) ;
90
90
}
91
91
92
- private ProcessStartInfo CreateStartInfo ( BenchmarkCase benchmarkCase , ArtifactsPaths artifactsPaths , string args , IResolver resolver )
92
+ private ProcessStartInfo CreateStartInfo ( BenchmarkCase benchmarkCase , ArtifactsPaths artifactsPaths ,
93
+ string args , IResolver resolver , bool noAcknowledgments )
93
94
{
94
95
var start = new ProcessStartInfo
95
96
{
96
97
UseShellExecute = false ,
97
98
RedirectStandardOutput = true ,
98
- RedirectStandardInput = true ,
99
+ RedirectStandardInput = ! noAcknowledgments ,
99
100
RedirectStandardError = false , // #1629
100
101
CreateNoWindow = true ,
101
102
StandardOutputEncoding = Encoding . UTF8 , // #1713
0 commit comments