2024-04-11 16:53:40 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# Copyright (c) 2024 Intel Corporation
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""
|
|
|
|
Status classes to be used instead of str statuses.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
2024-05-28 20:31:53 +08:00
|
|
|
class TwisterStatus(str, Enum):
|
2024-04-11 16:53:40 +08:00
|
|
|
def __str__(self):
|
|
|
|
return str(self.value)
|
|
|
|
|
2024-05-28 20:31:53 +08:00
|
|
|
# All statuses below this comment can be used for TestCase
|
2024-04-11 16:53:40 +08:00
|
|
|
BLOCK = 'blocked'
|
|
|
|
STARTED = 'started'
|
|
|
|
|
2024-05-28 20:31:53 +08:00
|
|
|
# All statuses below this comment can be used for TestSuite
|
|
|
|
# All statuses below this comment can be used for TestInstance
|
|
|
|
FILTER = 'filtered'
|
2024-04-11 16:53:40 +08:00
|
|
|
|
2024-05-28 20:31:53 +08:00
|
|
|
# All statuses below this comment can be used for Harness
|
|
|
|
NONE = None
|
2024-04-11 16:53:40 +08:00
|
|
|
ERROR = 'error'
|
|
|
|
FAIL = 'failed'
|
|
|
|
PASS = 'passed'
|
|
|
|
SKIP = 'skipped'
|