summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/exception.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-11-08 17:57:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:18 +0000
commit08714d3b7e744b19dde2b102ed4d80fc171f07a1 (patch)
treeafd3d6cff0b4cef3f2ddcc298fccf46ac7b060ed /meta/lib/oeqa/core/exception.py
parent7998501f472278b4ed93dd7b95b1776efde5cb6c (diff)
downloadpoky-08714d3b7e744b19dde2b102ed4d80fc171f07a1.tar.gz
oeqa/core: Add base OEQA framework
case: Defines OETestCase base class that provides custom methods/attrs defined by the framework. Every OETestCase instance contains a reference to the test data (d), the test context (tc) and the logger. Also implements _oe{SetUp,TearDown}Class for make special handling of OEQA decorators and validations. runner: Defines OETestRunner/OETestResult with support for RAW and XML result logs. exception: Custom exceptions related to the OEQA framework based on class OEQAException. [YOCTO #10230] [YOCTO #10233] (From OE-Core rev: c466086ccc4d4bb02d578a821cfb945945bfd529) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/exception.py')
-rw-r--r--meta/lib/oeqa/core/exception.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/exception.py b/meta/lib/oeqa/core/exception.py
new file mode 100644
index 0000000000..2dfd8402cf
--- /dev/null
+++ b/meta/lib/oeqa/core/exception.py
@@ -0,0 +1,14 @@
1# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT)
3
4class OEQAException(Exception):
5 pass
6
7class OEQATimeoutError(OEQAException):
8 pass
9
10class OEQAMissingVariable(OEQAException):
11 pass
12
13class OEQADependency(OEQAException):
14 pass