Skip to content

Commit 6d28a5d

Browse files
Set xfail for quantization_aware_training_torch_anomalib (#3744)
### Changes Add option to set skip or xfail marks for example Set xfail for quantization_aware_training_torch_anomalib ### Reason for changes https://github.com/openvinotoolkit/nncf/actions/runs/19449063330 ### Tests https://github.com/openvinotoolkit/nncf/actions/runs/19479239298
1 parent e9e7cd0 commit 6d28a5d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/cross_fw/examples/example_scope.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@
293293
"fp32_model_size": 21.37990665435791,
294294
"int8_model_size": 5.677968978881836,
295295
"model_compression_rate": 3.7654144877995197
296-
}
296+
},
297+
"xfail": "https://github.com/open-edge-platform/anomalib/issues/3121"
297298
},
298299
"fp8_llm_quantization": {
299300
"backend": "openvino",

tests/cross_fw/examples/test_examples.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@
4646
def example_test_cases():
4747
example_scope = load_json(EXAMPLE_SCOPE_PATH)
4848
for example_name, example_params in example_scope.items():
49-
marks = pytest.mark.cuda if example_params.get("device") == "cuda" else ()
49+
marks = []
50+
if example_params.get("device") == "cuda":
51+
marks.append(pytest.mark.cuda)
52+
if example_params.get("skip"):
53+
marks.append(pytest.mark.skip(reason=example_params.get("skip")))
54+
if example_params.get("xfail"):
55+
marks.append(pytest.mark.xfail(reason=example_params.get("xfail")))
5056
yield pytest.param(example_name, example_params, id=example_name, marks=marks)
5157

5258

0 commit comments

Comments
 (0)