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

Test source called once for all configurations #12050

Merged
merged 13 commits into from
Sep 9, 2022

Conversation

czoido
Copy link
Contributor

@czoido czoido commented Sep 7, 2022

Looks like it the source() method is called everytime for each configuration. Testing this does not work properly... and adding a fix

@czoido czoido added this to the 2.0.0-beta3 milestone Sep 7, 2022
@czoido czoido marked this pull request as ready for review September 8, 2022 08:46
@czoido czoido requested a review from memsharded September 8, 2022 15:20
@@ -98,40 +98,35 @@ def setUp(self):
self.client.run("export . --user=conan --channel=stable")

def test_source_local_command(self):
c1 = conanfile % {"no_copy_source": False, "source_with_infos": False,
Copy link
Contributor Author

@czoido czoido Sep 8, 2022

Choose a reason for hiding this comment

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

source_with_infos was not used any more, as there were two configurations that produced the same package revision but for the second time the source method did not run now the tests failed as a side effect of the changes in the PR

@lasote lasote self-requested a review September 9, 2022 09:45
@czoido czoido merged commit 082703e into conan-io:develop2 Sep 9, 2022
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.

3 participants