You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i have a recipe with a breaking change between V1.x.x and V2.x.x the recipe is identical for both version i just wish to specify a different test package for V1 and V2. I see i can specify test_package_folder attribute, Is there a way to set this dynamically like such:
Yes, the test_package_folder is read at export time, very early, so changing it in any method will have no effect.
Have you considered doing different logic in the test_package folder based on the self.tested_reference_str value, that will contain the tested version too?
yes, exactly something like that, using the tested_reference_str extract its version, and use it to decide what to do differently in the test_package/conanfile.py. Looks good enough to me. Depending on the amount of changes, you could do that, selecting one or other folder, sounds good too if there are too many changes in the CMakeLists.txt
What is your question?
Hi, i have a recipe with a breaking change between V1.x.x and V2.x.x the recipe is identical for both version i just wish to specify a different test package for V1 and V2. I see i can specify
test_package_folder
attribute, Is there a way to set this dynamically like such:Dynamically setting the
test_package_folder
attribute seems to have no effect.Conan version 2.4.1
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: