Skip to content

Commit 2cc1a33

Browse files
mattschlebuschandreitraistaru
authored andcommitted
Revert "make tests fail when criteria not found"
This reverts commit 082e58f. Signed-off-by: Matthew Schlebusch <[email protected]>
1 parent 082e58f commit 2cc1a33

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/framework/stats/consumer.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from numbers import Number
88
from typing import Any, Callable
99
from collections import defaultdict
10-
from framework.utils import ExceptionAggregator, get_kernel_version
11-
from framework.utils_cpuid import get_cpu_model_name, get_instance_type
10+
from framework.utils import ExceptionAggregator
1211

1312
from .criteria import CriteriaException
1413
from .metadata import Provider as MetadataProvider
@@ -142,16 +141,6 @@ def process(self, fail_fast=False) -> (dict, dict):
142141
self._failure_aggregator.add_row(fail_msg)
143142
if fail_fast:
144143
raise self._failure_aggregator
145-
else:
146-
self._statistics[ms_name][st_def.name]["outcome"] = "FAILED"
147-
fail_msg = (
148-
f"'{ms_name}/{st_def.name}': Criteria not found for "
149-
f"{get_instance_type()} / {get_cpu_model_name()} / "
150-
f"kernel {get_kernel_version(1)}."
151-
)
152-
self._failure_aggregator.add_row(fail_msg)
153-
if fail_fast:
154-
raise self._failure_aggregator
155144

156145
self._reset()
157146

0 commit comments

Comments
 (0)