]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/loader.py: support the 'auto' keyword
authorChen Qi <Qi.Chen@windriver.com>
Fri, 1 Jun 2018 05:02:58 +0000 (13:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jun 2018 14:14:43 +0000 (15:14 +0100)
commita65460a063a958cc887c756db5f7ab18e3f5a8c1
treee8bb204813ef7e2f2fff80f8e2d6584ce2e66864
parentf1d5bb1f21e11714357aff4ae7e52421e3756c5a
oeqa/core/loader.py: support the 'auto' keyword

In previous OEQA, having 'auto' in TEST_SUITES results in executing
as many test cases as possible.

This behaviour is broken for now. From the codes in core/loader.py,
I can see that it tries to use another keyword 'all'. But in fact,
it does not work.

I've checked the current manual. The manual says using 'auto'.
Below is the current information in manual.

  """
  Alternatively, you can provide the "auto" option to have all applicable
  tests run against the image.

  TEST_SUITES_append = " auto"
  """

So we should restore this behaviour. This patch does so.

Also, output warning message is some module is named as 'auto', as this
is a reserved keyword.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/loader.py