mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-17 10:31:20 -06:00
Fixes runtests-parallel not reporting failure for failed tests.
This commit is contained in:
parent
4afb8c4393
commit
aa4662ed5d
@ -193,7 +193,6 @@ function runTests(taskConfigsFolder, run, options, cb) {
|
||||
counter--;
|
||||
|
||||
if (counter <= 0) {
|
||||
var failed = 0;
|
||||
var reporter = new Base(),
|
||||
stats = reporter.stats,
|
||||
failures = reporter.failures;
|
||||
@ -224,8 +223,8 @@ function runTests(taskConfigsFolder, run, options, cb) {
|
||||
reporter.epilogue();
|
||||
}
|
||||
|
||||
if (failed) {
|
||||
return cb(new Error("Test failures reported: " + failed));
|
||||
if (stats.failures) {
|
||||
return cb(new Error("Test failures reported: " + stats.failures));
|
||||
}
|
||||
else {
|
||||
return cb();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user