diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-06-01 13:03:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-04 15:15:00 +0100 |
commit | d478a26e5f2b19568a8c27a217a6fb0eec98e193 (patch) | |
tree | ef050539fe868039cedeaaf3e3a3e08bffe97548 /meta | |
parent | 0a5cccfa248edf83dddab27d2646d8bc8c2d3aa1 (diff) | |
download | poky-d478a26e5f2b19568a8c27a217a6fb0eec98e193.tar.gz |
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
(From OE-Core rev: c1f4177848d25a9121f2a85da655ee414cd424b1)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/testimage.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
121 | testimage_sanity(d) | 121 | testimage_sanity(d) |
122 | 122 | ||
123 | if (d.getVar('IMAGE_PKGTYPE') == 'rpm' | 123 | if (d.getVar('IMAGE_PKGTYPE') == 'rpm' |
124 | and 'dnf' in d.getVar('TEST_SUITES')): | 124 | and ('dnf' in d.getVar('TEST_SUITES') or 'auto' in d.getVar('TEST_SUITES'))): |
125 | create_rpm_index(d) | 125 | create_rpm_index(d) |
126 | 126 | ||
127 | testimage_main(d) | 127 | testimage_main(d) |