[V2,1/5] framework/exception: add new exception VerifySkip
Commit Message
this new type exeption is used for framework to handle
the cases which should be skipped.
Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
framework/exception.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
@@ -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):
"""