-
Notifications
You must be signed in to change notification settings - Fork 43
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 tests within the same python process #17
Conversation
…thin the same python process)
self.assertEqual(return_code, expected_return_code, | ||
msg="Unexpected return code\n\n{}".format(output_stream.getvalue())) | ||
finally: | ||
conan_api._remote_manager._auth_manager._localdb.connection.close() # Close sqlite3 |
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.
Conan is not closing the connection to the database 😮 , we need to close it in order to remove the working directory.
Sounds like integration tests. |
Quite smooth and seems the way to go! 👍 |
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.
LGTM
…shared_post_build Removed shared artifacts check in post_build()
Hi! I want to share with you this trick to run the tests, I'm calling the Conan
main
function (not actually because it contains somesys.exit
calls in case of failure) to run the commands.We think this is almost the best approach to run the tests:
Let me know your thoughts about it.