summaryrefslogtreecommitdiffstats
path: root/test/test_result_code.py
diff options
context:
space:
mode:
authorKlement Sekera <klement.sekera@gmail.com>2023-03-29 16:04:58 +0200
committerDave Wallace <dwallacelf@gmail.com>2023-05-20 02:34:14 +0000
commit47f352710824c373f8130ba632022b47cb27505b (patch)
treefa57606e045bb94304b14d07ce8a1c23e92a12e5 /test/test_result_code.py
parent0157885517dcc0236b4719d4fc0ad789b3a15187 (diff)
tests: support for expected failures
- Add support for @unittest.expectedFailure decorator. Type: improvement Signed-off-by: Klement Sekera <klement.sekera@gmail.com> Change-Id: I761751cda505e962225dc680b97c1fffa96f5176 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/test_result_code.py')
-rw-r--r--test/test_result_code.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_result_code.py b/test/test_result_code.py
new file mode 100644
index 00000000000..93e8324a5a8
--- /dev/null
+++ b/test/test_result_code.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python3
+
+from enum import IntEnum, auto, unique
+
+
+@unique
+class TestResultCode(IntEnum):
+ PASS = auto()
+ FAIL = auto()
+ ERROR = auto()
+ SKIP = auto()
+ TEST_RUN = auto()
+ SKIP_CPU_SHORTAGE = auto()
+ EXPECTED_FAIL = auto()
+ UNEXPECTED_PASS = auto()