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

Run all hooks #1091

Merged
merged 2 commits into from
Feb 28, 2016
Merged

Run all hooks #1091

merged 2 commits into from
Feb 28, 2016

Conversation

tsloughter
Copy link
Collaborator

Fixes #1089

Issue is that some providers, like compile and clean, distinguish between top level hooks and per-app hooks. in order to keep them from running twice we remove the hooks from the top level State if it is a single top level app in the project (the hook stays with the app). But in the case of eunit and ct and relx these per-app hooks are not run. To fix this I have it now run all hooks for those providers. I think that is the proper fix but open to alternatives.

@tsloughter tsloughter force-pushed the all_hooks branch 2 times, most recently from d92f930 to 08c9ecb Compare February 28, 2016 15:50
@ferd
Copy link
Collaborator

ferd commented Feb 28, 2016

+1 on the change itself, tests would be good to avoid regressions.

ferd added a commit that referenced this pull request Feb 28, 2016
@ferd ferd merged commit a0b2c74 into erlang:master Feb 28, 2016
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.

can't hook into ct provider
2 participants