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>
This commit is contained in:
Klement Sekera
2023-03-29 16:04:58 +02:00
committed by Dave Wallace
parent 0157885517
commit 47f3527108
4 changed files with 202 additions and 154 deletions

15
test/test_result_code.py Normal file
View File

@ -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()