[dts] [PATCH V1 1/5] framework/exception: add new exception VerifySkip

Haiyang Zhao haiyangx.zhao at intel.com
Wed Mar 17 08:16:21 CET 2021


this new type exeption is used for framework to handle
the cases which should be skipped.

Signed-off-by: Haiyang Zhao <haiyangx.zhao at intel.com>
---
 framework/exception.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/framework/exception.py b/framework/exception.py
index cc2f724b..bdedd743 100644
--- a/framework/exception.py
+++ b/framework/exception.py
@@ -35,6 +35,19 @@ class VerifyFailure(Exception):
         return repr(self.value)
 
 
+class VerifySkip(Exception):
+
+    """
+    To be used within the test cases to verify if case should be skipped.
+    """
+
+    def __init__(self, value):
+        self.value = value
+
+    def __str__(self):
+        return repr(self.value)
+
+
 class SSHConnectionException(Exception):
 
     """
-- 
2.17.1



More information about the dts mailing list