We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5882a commit c5ec6d9Copy full SHA for c5ec6d9
dd-smoke-tests/src/main/groovy/datadog/smoketest/ProcessManager.groovy
@@ -196,6 +196,18 @@ abstract class ProcessManager extends Specification {
196
outputThreads.captureOutput(p, new File(logFilePaths[idx]))
197
}
198
testedProcess = numberOfProcesses == 1 ? testedProcesses[0] : null
199
+
200
201
+ (0..<numberOfProcesses).each { idx ->
202
+ def curProc = testedProcesses[idx]
203
204
+ if ( !curProc.isAlive() && curProc.exitValue() != 0 ) {
205
+ def exitCode = curProc.exitValue()
206
+ def logFile = logFilePaths[idx]
207
208
+ throw new RuntimeException("Process exited abormally - exitCode:${exitCode}; logFile=${logFile}")
209
+ }
210
211
212
213
String javaPath() {
0 commit comments