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

Commit 26d67a2

Browse files
committed
fix(launcher): launcher should report a failure when only one capability is running
1 parent 9530a0c commit 26d67a2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/launcher.js

+9
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ var init = function(argv) {
134134
log_('Runner Process(' + childFork.process.pid + ') Error: ' + err);
135135
});
136136

137+
138+
childFork.process.on('message', function(m) {
139+
switch (m.event) {
140+
case 'testsDone':
141+
childFork.failedCount = m.failedCount;
142+
break;
143+
}
144+
});
145+
137146
childFork.process.on('exit', function(code, signal) {
138147
if (code) {
139148
log_('Runner Process Exited With Error Code: ' + code);

0 commit comments

Comments
 (0)