This commit is contained in:
Florian Dold 2020-08-06 17:53:13 +05:30
parent ac438906e9
commit 710f8ade33
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -287,11 +287,12 @@ export class GlobalTestState {
}
spawnService(command: string, logName: string): ProcessWrapper {
console.log("spawning process", command);
console.log(`spawning process (${logName})`, command);
const proc = spawn(command, {
shell: true,
stdio: ["inherit", "pipe", "pipe"],
});
console.log(`spawned process (${logName}) with pid ${proc.pid}`);
proc.on("error", (err) => {
console.log(`could not start process (${command})`, err);
});