Skip to content
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

In CI app, clean up launchers on SIGINT or SIGTERM #548

Merged
merged 1 commit into from
Apr 25, 2015

Conversation

mzgoddard
Copy link
Contributor

If SIGINT or SIGTERM is sent to the testem process in CI app, clean up
the launchers so that they aren't sitting around afterwords.

If SIGINT or SIGTERM is sent to the testem process in CI app, clean up
the launchers so that they aren't sitting around afterwords.
@mzgoddard
Copy link
Contributor Author

Noticed on my system that --timeout times out the tests but then the process waits for any launched browsers to quit on their own or be killed by the normal completion of the tests. This adds a test and makes sure timeout leads to a quicker finish.

this._boundSigInterrupt = function() {
this.wrapUp(new Error('Received SIGINT signal'))
}.bind(this)
process.on('SIGINT', this._boundSigInterrupt)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the best place I've figured to put these so far. Happy to move them anywhere.

@johanneswuerbach
Copy link
Member

Thank you 👍

johanneswuerbach added a commit that referenced this pull request Apr 25, 2015
In CI app, clean up launchers on SIGINT or SIGTERM
@johanneswuerbach johanneswuerbach merged commit 5089e10 into testem:master Apr 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants