From: Mingli Yu <mingli...@windriver.com> After below commit introduced, the do_install_ptest function is defined concentratedly in ptest-python-pytest.bbclass. 8d84d9e19b python3-*: Update recipes with pytest ptests to use the new ptest-python-pytest class
Use append for do_install_ptest to avoid the do_install_ptest logic defined in ptest-python-pytest.bbclass be overrided. Before the patch: # cd /usr/lib/python3-license-expression/ptest/ # ls setup.cfg src After the patch: # cd /usr/lib/python3-license-expression/ptest/ # ls run-ptest setup.cfg src tests # ./run-ptest PASS: tests/test__pyahocorasick.py:TestTrie.test_add_can_get PASS: tests/test__pyahocorasick.py:TestTrie.test_add_existing_WordShouldReplaceAssociatedValue PASS: tests/test__pyahocorasick.py:TestTrie.test_exists_ShouldDetectAddedWords PASS: tests/test__pyahocorasick.py:TestTrie.test_exists_ShouldReturnFailOnUnknownWord PASS: tests/test__pyahocorasick.py:TestTrie.test_get_UnknowWordWithDefaultValueShouldReturnDefault PASS: tests/test__pyahocorasick.py:TestTrie.test_get_UnknowWordWithoutDefaultValueShouldRaiseException PASS: tests/test__pyahocorasick.py:TestTrie.test_is_prefix_ShouldDetecAllPrefixesIncludingWord PASS: tests/test__pyahocorasick.py:TestTrie.test_items_ShouldReturnAllItemsAlreadyAddedToTheTrie PASS: tests/test__pyahocorasick.py:TestTrie.test_iter_should_can_return_non_matches_optionally PASS: tests/test__pyahocorasick.py:TestTrie.test_iter_should_not_return_non_matches_by_default PASS: tests/test__pyahocorasick.py:TestTrie.test_iter_simple [snip] Signed-off-by: Mingli Yu <mingli...@windriver.com> --- .../python/python3-license-expression_30.4.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb b/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb index 649b53ea49..73eeff9c06 100644 --- a/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb +++ b/meta/recipes-devtools/python/python3-license-expression_30.4.1.bb @@ -22,7 +22,7 @@ RDEPENDS:${PN} += "\ BBCLASSEXTEND = "native nativesdk" -do_install_ptest() { +do_install_ptest:append() { install -d ${D}${PTEST_PATH}/src cp -rf ${S}/src/* ${D}${PTEST_PATH}/src/ cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/ -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211084): https://lists.openembedded.org/g/openembedded-core/message/211084 Mute This Topic: https://lists.openembedded.org/mt/111099341/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-