]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/core/decorator/oetimeout: Add support for OEQA threaded mode
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 26 May 2017 20:37:40 +0000 (15:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Jun 2017 12:36:14 +0000 (13:36 +0100)
commitd3d4ba902dee8b19fa1054330cffdf73f9b81fe7
treecbf70954f69170253d3882ecb3b277b88c0ce5da
parent008cc04790845721bea649e9a9ff84f0d466f771
oeqa/core/decorator/oetimeout: Add support for OEQA threaded mode

In python signals are only allowed to delivery into the main thread,
to support the threading mode test if the runner is threaded and
use threading.Timer instead.

There are some considerations like SIGALRM interrupts the execution
after N seconds but the Timer only starts a Thread to notice the
timeout and the exception will be raised when the test run ends.

[YOCTO #11450]

(From OE-Core rev: 8ab201612e22493dc2509ba339a8f07ade611a54)

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/decorator/oetimeout.py