[apiConformance] Update expected err message for inference_precision (#21156)
This commit is contained in:
parent
28208c6c9a
commit
0aa466e094
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user