| 1094 | TestResult = enum.Enum('TestResult', ['PASS', 'FAIL']) |
| 1095 | |
| 1096 | class Test: |
| 1097 | def __init__( |
| 1098 | self, |
| 1099 | test_id: str, |
| 1100 | result : TestResult =None, |
| 1101 | ellapsed_seconds : float =None |
| 1102 | ): |
| 1103 | self.test_id = test_id |
| 1104 | self.result = result |
| 1105 | self.ellapsed_seconds = ellapsed_seconds |
| 1106 | def __str__(self): |
| 1107 | out = [] |
| 1108 | if self.result is not None: |
| 1109 | out.append(self.result.name) |
| 1110 | if self.ellapsed_seconds is not None: |
| 1111 | out.append(LkmcCliFunction.seconds_to_hms(self.ellapsed_seconds)) |
| 1112 | out.append(self.test_id) |
| 1113 | return ' '.join(out) |
| 1114 | |
| 1115 | class TestCliFunction(LkmcCliFunction): |
| 1116 | ''' |