From 26d67a29a8a12aa52331a1ec4ae8013cf63257f2 Mon Sep 17 00:00:00 2001 From: Julie Date: Wed, 26 Mar 2014 16:06:48 -0700 Subject: [PATCH] fix(launcher): launcher should report a failure when only one capability is running --- lib/launcher.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/launcher.js b/lib/launcher.js index 524847016..48e99d89e 100644 --- a/lib/launcher.js +++ b/lib/launcher.js @@ -134,6 +134,15 @@ var init = function(argv) { log_('Runner Process(' + childFork.process.pid + ') Error: ' + err); }); + + childFork.process.on('message', function(m) { + switch (m.event) { + case 'testsDone': + childFork.failedCount = m.failedCount; + break; + } + }); + childFork.process.on('exit', function(code, signal) { if (code) { log_('Runner Process Exited With Error Code: ' + code);