Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Exit with correct code #39

Closed
wants to merge 1 commit into from

2 participants

@Raynos

Fixes #38

So when I run fleet exec -- npm test I can actually see when my tests fail!

@Raynos Raynos Exit with correct code
Fixes #38

So when I run `fleet exec -- npm test` I can actually see when my tests fail!
1526c37
@sreuter

Awesome - I just had the same idea.

+1

@Raynos

Closing this due to staleness

@Raynos Raynos closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 19, 2012
  1. @Raynos

    Exit with correct code

    Raynos authored
    Fixes #38
    
    So when I run `fleet exec -- npm test` I can actually see when my tests fail!
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/exec.js
View
5 bin/exec.js
@@ -71,7 +71,10 @@ function spawn (hub, opts) {
if (procs[proc.drone] !== proc.id) return;
console.log('(' + proc.drone + '#' + proc.id + ' exited)');
- if (--pending === 0) p.hub.close();
+ if (--pending === 0) {
+ p.hub.close();
+ process.exit(code);
+ }
});
});
});
Something went wrong with that request. Please try again.