-
Notifications
You must be signed in to change notification settings - Fork 45
Fix for #16 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #16 #18
Conversation
could you try the version on dev branch? |
It does seem to work correctly when invoking it through npm, but I got the following test results: > parallelshell@2.0.0 test d:\Temp\parallelshell
> mocha
parallelshell
1) should print on -h and --help
2) should close with exitCode 1 on child error
3) should run with a normal child
4) should close sibling processes on child error
√ should wait for sibling processes on child error when called with -w or --wait (400ms)
√ should close on CTRL+C / SIGINT (140ms)
√ should work with chained commands (140ms)
√ should work nested (260ms)
√ should work with setting ENV (230ms)
√ should work with first (230ms)
√ should not work with first and wait (120ms)
7 passing (2s)
4 failing
1) parallelshell should print on -h and --help:
Uncaught AssertionError: expected '-v, --verbose verbose logging' to equal undefined
at Socket.<anonymous> (d:\Temp\parallelshell\test\index.coffee:73:21)
at _stream_readable.js:920:16
2) parallelshell should close with exitCode 1 on child error:
Uncaught AssertionError: expected '-v, --verbose verbose logging' to equal undefined
at Socket.<anonymous> (d:\Temp\parallelshell\test\index.coffee:73:21)
at _stream_readable.js:920:16
3) parallelshell should run with a normal child:
Uncaught AssertionError: expected 8 to equal 1
+ expected - actual
-8
+1
at ChildProcess.<anonymous> (d:\Temp\parallelshell\test\index.coffee:86:26)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Pipe.close (net.js:466:12)
4) parallelshell should close sibling processes on child error:
Uncaught AssertionError: expected 8 to equal 1
+ expected - actual
-8
+1
at ChildProcess.<anonymous> (d:\Temp\parallelshell\test\index.coffee:104:26)
at Process.ChildProcess._handle.onexit (child_process.js:789:12)
npm ERR! Test failed. See above for more details. |
Very strange. I have no Idea what exitcode 8 means. |
I called
|
npm-debug.log:
|
This fixes #16 .