]> code.ossystems Code Review - openembedded-core.git/commit
testimage.bbclass: fix behavior of empty TEST_SUITES
authorChen Qi <Qi.Chen@windriver.com>
Fri, 1 Jun 2018 05:02:59 +0000 (13:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jun 2018 14:14:43 +0000 (15:14 +0100)
commit909568821fbad8a6a7034b10a2dc349a210fdfc6
tree06c8e6e1518887da6db3c6a0c696d9f99a3e1fa0
parenta65460a063a958cc887c756db5f7ab18e3f5a8c1
testimage.bbclass: fix behavior of empty TEST_SUITES

The current behaviour of TEST_SUITES is very confusing.

setting: TEST_SUITES = ""
result:  Execute all test cases.

setting: TEST_SUITES = "some_case_not_exist"
result:  Error out with 'Empty test suite' message.

The expected behaviour of TEST_SUITES should be:
1. when 'auto' is in it, execute as many test cases as possible
2. when no valid test case is specified, error out and give user message

The first one is implemented by a previous patch.
The second one is fixed in this patch.

Also add debug message to show test cases to be executed. This is
for easier debugging.

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