Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[test] Fix sporadic failure for test CanUseCache (#34851)

Pawel Raasz9dac9cb5554c
diff --git a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
index d960b998637..b653da0b6be 100644
--- a/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
+++ b/src/tests/functional/base_func_tests/src/behavior/compiled_model/properties.cpp
@@ -79,7 +79,7 @@ void OVCompileModelGetExecutionDeviceTests::SetUp() {
}
TEST_P(OVClassCompiledModelPropertiesTests, CanUseCache) {
- std::string cache_dir = "./test_cache";
+ std::string cache_dir = "./test_cache_" + ov::test::utils::generateTestFilePrefix();
core->set_property(ov::cache_dir(cache_dir));
OV_ASSERT_NO_THROW(core->compile_model(model, target_device, properties));
OV_ASSERT_NO_THROW(core->compile_model(model, target_device, properties));
diff --git a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/cache/CPU/test_cache_API.lst b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/cache/CPU/test_cache_API.lst
index 0accefe8608..f17aab72e3e 100644
--- a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/cache/CPU/test_cache_API.lst
+++ b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/cache/CPU/test_cache_API.lst
@@ -484,7 +484,6 @@
128:ov_infer_request_mandatory/OVInferRequestCheckTensorPrecision.getOutputFromFunctionWithSingleInput/type=i16_target_device=CPU_
128:ov_infer_request_mandatory/OVInferRequestCheckTensorPrecision.getOutputFromFunctionWithSingleInput/type=f64_target_device=CPU_
128:ov_compiled_model_mandatory/OVCompiledModelBaseTest.CanGetOutputsInfo/targetDevice=CPU_
-128:ov_compiled_model_mandatory/OVClassCompiledModelPropertiesTests.CanUseCache/targetDevice=CPU_properties={PERF_COUNT:NO}
128:ov_compiled_model/OVCompiledGraphImportExportTest.readFromV10IR/targetDevice=CPU_elementType=i8_
128:ov_compiled_model/OVCompiledGraphImportExportTest.readFromV10IR/targetDevice=CPU_elementType=f64_
127:ov_infer_request_mandatory/OVInferRequestIOTensorTest.secondCallGetOutputDoNotReAllocateData/targetDevice=CPU_
diff --git a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/TEMPLATE/expected_failures_API.csv b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/TEMPLATE/expected_failures_API.csv
index 0c95f3c4307..27f344c9c59 100644
--- a/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/TEMPLATE/expected_failures_API.csv
+++ b/src/tests/test_utils/functional_test_utils/layer_tests_summary/github/skip_configs/TEMPLATE/expected_failures_API.csv
@@ -1,6 +1,4 @@
Test Name,Fix Priority
-ov_compiled_model_mandatory/OVClassCompiledModelPropertiesTests.CanUseCache/targetDevice=TEMPLATE_properties={PERF_COUNT:NO},0
-ov_compiled_model_mandatory/OVClassCompiledModelPropertiesTests.CanUseCache/targetDevice=TEMPLATE_properties={PERFORMANCE_HINT:LATENCY},0
ov_compiled_model_mandatory/OVCompiledModelBaseTest.compile_from_cached_weightless_blob_use_weight_hint/targetDevice=TEMPLATE_,0
ov_compiled_model_mandatory/OVCompiledModelBaseTest.compile_from_cached_weightless_blob_no_hint/targetDevice=TEMPLATE_,0
ov_compiled_model_mandatory/OVCompiledModelBaseTest.use_blob_hint_has_priority_over_cache/targetDevice=TEMPLATE_,0