Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve error handling within e2e.sh #244

Merged
merged 2 commits into from
Jul 27, 2016
Merged

Improve error handling within e2e.sh #244

merged 2 commits into from
Jul 27, 2016

Conversation

ltk
Copy link

@ltk ltk commented Jul 27, 2016

trap provides more robust error handling than set -e. (http://mywiki.wooledge.org/BashFAQ/105)

This may actually fix #163. I was seeing a trapped error when I tried to replicate the state described in that issue, but it'd be helpful to have someone else confirm this.

I also point the npm test command to e2e.sh for convenience. Could go either way on that one. It's unimportant.

Error messages look like:

this

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please # at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@ghost
Copy link

ghost commented Jul 27, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2016

@vjeux Can you review?

@vjeux vjeux merged commit a9d1106 into facebook:master Jul 27, 2016
@vjeux
Copy link
Contributor

vjeux commented Jul 27, 2016

This is way beyond my bash skills but it looks really good. I hated the fact that I didn't clean up on errors and left a ton of garbage folders there.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Figure out why e2e script doesn't catch some issues
4 participants