mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-21 13:14:43 -06:00
Have runtests always throw on failure, make rm stream signal end of read queue (#30035)
This commit is contained in:
parent
592396d40a
commit
fb0dcd4987
@ -140,13 +140,8 @@ async function runConsoleTests(runJs, defaultReporter, runInParallel, watchMode,
|
||||
await deleteTemporaryProjectOutput();
|
||||
|
||||
if (error !== undefined) {
|
||||
if (watchMode) {
|
||||
throw error;
|
||||
}
|
||||
else {
|
||||
log.error(error);
|
||||
process.exit(typeof errorStatus === "number" ? errorStatus : 2);
|
||||
}
|
||||
process.exitCode = typeof errorStatus === "number" ? errorStatus : 2;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
exports.runConsoleTests = runConsoleTests;
|
||||
|
||||
@ -340,6 +340,7 @@ function rm(dest, opts) {
|
||||
duplex.push(file);
|
||||
cb();
|
||||
}
|
||||
duplex.push(null); // signal end of read queue
|
||||
};
|
||||
|
||||
const duplex = new Duplex({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user