From: Chen Qi Date: Fri, 1 Jun 2018 05:03:04 +0000 (+0800) Subject: testimage.bbclass: also check 'auto' to create rpm index X-Git-Tag: uninative-2.1~56 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=c1f4177848d25a9121f2a85da655ee414cd424b1;p=openembedded-core.git testimage.bbclass: also check 'auto' to create rpm index Having 'auto' in TEST_SUITES will also run the 'dnf' test cases, so also check it to determine whether to create rpm index or not. This is to fix the following error when TEST_SUITES = "auto". RESULTS - dnf.DnfRepoTest.test_dnf_makecache - Testcase 1744: ERROR Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index d97da67681..14252ffc8a 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -121,7 +121,7 @@ python do_testimage() { testimage_sanity(d) if (d.getVar('IMAGE_PKGTYPE') == 'rpm' - and 'dnf' in d.getVar('TEST_SUITES')): + and ('dnf' in d.getVar('TEST_SUITES') or 'auto' in d.getVar('TEST_SUITES'))): create_rpm_index(d) testimage_main(d)