Fix exit code fail

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: I0c227222d5ebdd9536125bbad05c97ad41a5fa18
This commit is contained in:
zhangrengao 2022-11-15 08:29:58 +00:00
parent 19ce7c32ce
commit fb624a913d

View File

@ -298,6 +298,9 @@ function invokeWorkerToGenAbc() {
cluster.removeAllListeners("exit");
}
cluster.on('exit', (worker, code, signal) => {
if (code === FAIL) {
process.exitCode = FAIL;
}
count_++;
if (count_ === workerNumber) {
// for preview of with incre compile