[apiConformance] Update expected err message for inference_precision (#21156)

This commit is contained in:
Sofya Balandina 2023-11-28 18:56:11 +00:00 committed by GitHub
parent 28208c6c9a
commit 0aa466e094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,8 +417,12 @@ TEST_P(OVCheckChangePropComplieModleGetPropTests_InferencePrecision, ChangeCorre
core->compile_model(model, target_device, compileModelProperties);
} catch (const Exception& ex) {
std::string err_msg(ex.what());
ASSERT_TRUE(err_msg.find("Unsupported precision") != std::string::npos) <<
"Fail to set and compile_model with precision: " << type << std::endl;
ASSERT_TRUE(err_msg.find("Wrong value") != std::string::npos ||
err_msg.find("Unsupported precision") != std::string::npos) <<
"Error message is unclear. The err msg:" << err_msg << std::endl;
ASSERT_TRUE(err_msg.find("Supported values") != std::string::npos) <<
"The error message doesn't provide info about supported precicions." <<
"The err msg: " << err_msg << std::endl;
continue;
}