mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
oeqa/core/decorator/depends: Add support for threading mode
The _skipTestDependency needs to know if the thread mode is enabled because the _results are by thread. [YOCTO #11450] (From OE-Core rev: 257d9ef4531052ba8507771b58884c7d2b64143d) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9ea42734c0
commit
008cc04790
@@ -3,6 +3,7 @@
|
||||
|
||||
from unittest import SkipTest
|
||||
|
||||
from oeqa.core.threaded import OETestRunnerThreaded
|
||||
from oeqa.core.exception import OEQADependency
|
||||
|
||||
from . import OETestDiscover, registerDecorator
|
||||
@@ -63,7 +64,12 @@ def _order_test_case_by_depends(cases, depends):
|
||||
return [cases[case_id] for case_id in cases_ordered]
|
||||
|
||||
def _skipTestDependency(case, depends):
|
||||
results = case.tc._results
|
||||
if isinstance(case.tc.runner, OETestRunnerThreaded):
|
||||
import threading
|
||||
results = case.tc._results[threading.get_ident()]
|
||||
else:
|
||||
results = case.tc._results
|
||||
|
||||
skipReasons = ['errors', 'failures', 'skipped']
|
||||
|
||||
for reason in skipReasons:
|
||||
|
||||
Reference in New Issue
Block a user