Closed RomainNaour closed 3 years ago
We need tests for that before merging.
I'm currently looking into this.
Sorry for overriding you with my PR #86 . Could you please check whether it fixes the bug you found?
My PR is missing the check in build().
There is not test for it, so it doesn't fail. 😢
In fact it works, because target()
return None if no target is set in the build or any of its parents.
In fact it works, because
target()
return None if no target is set in the build or any of its parents.
Indeed, but None is not a Yocto target :p I didn't had time to write a test to check this case, I just push the fix I did. I'll test your patch asap, sorry for the mess...
Thank you Romain. The same feature is included in PR#86 (which contains a test :-) )
That's right.
It's this code:
if not BuildConfiguration.ALL[build].target():
fatal_error('build has no target:', build)
it's filter_build_configs()
which errors out if a build with no target (None
) is requested by the user.
fatal_error('build has no target:', build)
@RomainNaour feel free to reopen this PR if you want.
…n template
Since commit 356a75a3584d8d52200ec8737b38d53548c4b20a, the build function must check if the build configuration is not a template.
Signed-off-by: Romain Naour romain.naour@smile.fr