-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cleanup actions are only run if no tests failed #80
Comments
I think this behavior is intended. At least the git test suite does the same thing. |
Yeah, this should probably be explained better in the doc. |
@jluebbe I think what you want is implemented in Git upstream with |
Stumbled over the same thing. Documentation mismatches behavior! What fix would you prefer in a PR? |
@LeSpocky What explained in my previous comment: port |
You mean this one? https://github.com/git/git/blob/master/t/test-lib-functions.sh#L1364 Thing is: |
No, this one: https://github.com/git/git/blob/master/t/test-lib-functions.sh#L1397
I don't think so. One says it runs at unconditionally at the end of the test script, and the other unconditionally after all the tasks have been run. It's not the same.
I don't know.
It's probably not necessary to have both of them. But I believe Eventually we probably should get rid of |
After reading the original commit bfa91e4 it seems clear the intention was to serve as git's So I've updated the code to make There are some subtle differences with |
The cleanup helper documentation says:
The test_done() function actually only runs the cleanup actions if the
$test_failure
variable is 0 (no failed tests). As we use this to stop a local dbus-daemon, we have leftover processes as soon as a single test case fails. It works fine if we addtest_eval_ "$final_cleanup"
to the*)
case as well.Is this behavior intended? If so, I was confused by the documentation.
The text was updated successfully, but these errors were encountered: