On Wed, 18 Dec 2024 at 00:12, Derek Straka via lists.openembedded.org <[email protected]> wrote: > +addtask install_ptest_python_pytest after do_install_ptest_base before > do_package > + > +python () { > + if not bb.data.inherits_class('native', d) and not > bb.data.inherits_class('cross', d): > + d.setVarFlag('do_install_ptest_python_pytest', 'fakeroot', '1') > + d.setVarFlag('do_install_ptest_python_pytest', 'umask', '022') > + > + # Remove all '*ptest_python_pytest' tasks when ptest is not enabled > + if not(d.getVar('PTEST_ENABLED') == "1"): > + for i in ['do_install_ptest_python_pytest']: > + bb.build.deltask(i, d) > +}
I know other ptest extension classes do this, but I really do not think adding another task and copy-pasting special handling in anonymous python is necessary. Just define do_install_ptest(). Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#208868): https://lists.openembedded.org/g/openembedded-core/message/208868 Mute This Topic: https://lists.openembedded.org/mt/110172358/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
