Log process kill err
This commit is contained in:
parent
c012899d0a
commit
584c706951
|
@ -293,6 +293,10 @@ export class Session {
|
|||
try {
|
||||
process.kill(this.term.pty.pid);
|
||||
} catch (err) {
|
||||
this.send({
|
||||
event: 'error doing process.kill',
|
||||
err
|
||||
})
|
||||
// process might have already exited
|
||||
}
|
||||
// Signal to terminalOutput message generator using closure.
|
||||
|
@ -306,12 +310,10 @@ export class Session {
|
|||
if (compile) {
|
||||
cmdline = `( ${compile} ) && ( ${run} )`;
|
||||
}
|
||||
} else if (repl && !expectedOutput) {
|
||||
} else if (repl) {
|
||||
cmdline = repl;
|
||||
} else {
|
||||
cmdline = expectedOutput
|
||||
? "Test runner"
|
||||
: `echo '${name} has no REPL, press Run to see it in action'`;
|
||||
cmdline = `echo '${name} has no REPL, press Run to see it in action'`;
|
||||
}
|
||||
if (code === undefined) {
|
||||
code = createEmpty !== undefined ? createEmpty : template + "\n";
|
||||
|
|
|
@ -578,8 +578,6 @@ async function getImageHash(tag) {
|
|||
}
|
||||
).output;
|
||||
if (!output) return;
|
||||
console.log('output config', JSON.parse(output)[0].Config)
|
||||
// console.log('image hash', output.Config.Labels["riju.image-hash"])
|
||||
return JSON.parse(output)[0].Config.Labels["riju.image-hash"];
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,6 @@ export async function run(args, log, options) {
|
|||
proc.on("error", reject);
|
||||
proc.on("close", (code, signal) => {
|
||||
output = output.trim();
|
||||
console.log(output)
|
||||
if (output && !suppressOutput) {
|
||||
log(`Output from ${args[0]}:\n` + output);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue