testimage-auto is expected to run testimage task's codes automatically. But in fact, it's currently missing some codes, including testimage_sanity and create_rpm_index.
This leads to the problem of unexpected runtime failure of test_dnf_makecache. The error message is as below. RESULTS - dnf.DnfRepoTest.test_dnf_makecache - Testcase 1744: ERROR This error is caused by the fact that create_rpm_index is not executed before running the tests. Signed-off-by: Chen Qi <qi.c...@windriver.com> --- meta/classes/testimage-auto.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/classes/testimage-auto.bbclass b/meta/classes/testimage-auto.bbclass index e0a22b7..7da516a 100644 --- a/meta/classes/testimage-auto.bbclass +++ b/meta/classes/testimage-auto.bbclass @@ -16,6 +16,12 @@ inherit testimage python do_testimage_auto() { + testimage_sanity(d) + + if (d.getVar('IMAGE_PKGTYPE') == 'rpm' + and ('dnf' in d.getVar('TEST_SUITES') or 'auto' in d.getVar('TEST_SUITES'))): + create_rpm_index(d) + testimage_main(d) } addtask testimage_auto before do_build after do_image_complete -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core