-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add option to bail out of jake runtests
when a test fails
#8925
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
Conversation
Hi @Andy-MS, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
jake runtests
on when a test failsjake runtests
when a test fails
👍 For parallel runs, |
console.log(workerCmd); | ||
exec(workerCmd, finishWorker, finishWorker) | ||
}); | ||
|
||
function finishWorker(e, errorStatus) { | ||
counter--; | ||
|
||
if (bail && errorStatus !== undefined) { | ||
failWithStatus(firstErrorStatus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this fail with the correct number of errors? I don't think firstErrorStatus
would be assigned until after the next if
block.
I guess the fix would be to move below the next if
block or just return errorStatus
I commented on the commit by mistake so it doesn't show up on this page. |
Do you want to just drop the parallel commit? The parallel code is now very complex and it runs in 30-60 seconds, so there's not much point in bailing anyway. |
Good idea. Replacing with #9146 |
Currently serial only. For parallel we would need a way to notify all other running processes to stop.