]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/threaded: Add new module with OETestLoaderThreaded
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 26 May 2017 20:37:33 +0000 (15:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 09:15:22 +0000 (10:15 +0100)
commitb4ae730ee1d6003ff005148f741270e2878de484
treead2e32d74c09037b79ee108febb167aa44dfbbb4
parent33a783f59ed4e232f41f8b09dfa7955f2ddc2f80
oeqa/core/threaded: Add new module with OETestLoaderThreaded

The threded module will implement Thread support into the OEQA
framework.

The OETestLoaderThreaded overrides discover to return a list of
suites every suite will be run by a separate Thread.

Some design considerations are:

- All the tests of a certain module needs to be run at one thread
  because unittest framework needs to keep track of setUp{Module,
Class,} and tearDown{Module, Class,}.

- Tests that depends on other needs to be run at the same thread
because OEQA framework look at the status of dependant test to
decide if skip or not, this constraint can be change in the future
but a sync mechanishm is needed to implement between the Threads.

[YOCTO #11450]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/threaded.py [new file with mode: 0644]