]> code.ossystems Code Review - openembedded-core.git/commit
testimage.bbclass: move codes into testimage_main
authorChen Qi <Qi.Chen@windriver.com>
Fri, 1 Jun 2018 05:03:10 +0000 (13:03 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 09:40:35 +0000 (10:40 +0100)
commitd55013db85db28bb061b40976cdda7022fa1eb22
treede2b0fd87c7eb07c200587c23e3cc01fc37bc301
parentd2701a747209b99e816655eb5f70a2bf666c4314
testimage.bbclass: move codes into testimage_main

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.

There's no reason why such codes should not be in testimage_main, so
move them into it.

(From OE-Core rev: fa7ba486ded13907f63f9300f66350ba2835a3f7)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/testimage.bbclass