test
parent
9876ce965e
commit
119f8b0a0b
|
|
@ -500,6 +500,7 @@ class RemoteClientSystem {
|
|||
}
|
||||
if (stderr) {
|
||||
cloud_runner_logger_1.default.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
|
||||
return;
|
||||
}
|
||||
const outputChunk = `${stdout.toString()}`;
|
||||
cloud_runner_logger_1.default.logRemoteCli(outputChunk);
|
||||
|
|
@ -507,8 +508,9 @@ class RemoteClientSystem {
|
|||
});
|
||||
child.on('close', function (code) {
|
||||
if (code !== 0) {
|
||||
throw new Error(`[FAIL][${code}] ${output}`);
|
||||
throw new Error(`[exit code ${code}] Output Ended`);
|
||||
}
|
||||
cloud_runner_logger_1.default.logRemoteCli(`[exit code 0] Output Ended`);
|
||||
promise(output);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -12,6 +12,7 @@ export class RemoteClientSystem {
|
|||
}
|
||||
if (stderr) {
|
||||
CloudRunnerLogger.logRemoteCli(`[DIAGNOSTIC] ${stderr.toString()}`);
|
||||
return;
|
||||
}
|
||||
const outputChunk = `${stdout.toString()}`;
|
||||
CloudRunnerLogger.logRemoteCli(outputChunk);
|
||||
|
|
@ -19,8 +20,9 @@ export class RemoteClientSystem {
|
|||
});
|
||||
child.on('close', function (code) {
|
||||
if (code !== 0) {
|
||||
throw new Error(`[FAIL][${code}] ${output}`);
|
||||
throw new Error(`[exit code ${code}] Output Ended`);
|
||||
}
|
||||
CloudRunnerLogger.logRemoteCli(`[exit code 0] Output Ended`);
|
||||
promise(output);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue