Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(launcher): launcher should report a failure when only one capabil…
Browse files Browse the repository at this point in the history
…ity is running
  • Loading branch information
juliemr committed Mar 26, 2014
1 parent 9530a0c commit 26d67a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 26d67a2

Please sign in to comment.