Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .testing/processes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ module.exports = {
start: function(opts, callback) {
var proc = exec(
opts.command,
opts.options
opts.options,
// catch errors that might otherwise NOT be shown in console
(error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
},
);
if (opts.waitForMessage) {
proc.stdout.on('data', function waitForMessage(data) {
Expand Down Expand Up @@ -42,4 +51,4 @@ module.exports = {
});
processes.push(proc);
}
};
};