diagnostic - failedTests.length should be equal to testsFailed but is not in our hudson windows build

This commit is contained in:
akhil 2014-01-15 14:56:29 -08:00
parent 4ba5e47f32
commit 4d54f67f8d
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ function runNextTest() {
', completion rate: ' + bold + completion.toFixed(0) + '%' + reset +
', total time: ' + bold + ((Date.now() - totalStart) / 1000).toFixed(0) + reset + 's' +
'\n');
if (failedTests.length > 0) {
stderr.write('Failed tests: ' + '\n');
if (testsFailed > 0) {
stderr.write('Failed tests: ' + failedTests.length + '\n');
var i = 0;
failedTests.forEach(function(test) {
stderr.write((++i) + ' ' + test + '\n');