[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);
|
core->compile_model(model, target_device, compileModelProperties);
|
||||||
} catch (const Exception& ex) {
|
} catch (const Exception& ex) {
|
||||||
std::string err_msg(ex.what());
|
std::string err_msg(ex.what());
|
||||||
ASSERT_TRUE(err_msg.find("Unsupported precision") != std::string::npos) <<
|
ASSERT_TRUE(err_msg.find("Wrong value") != std::string::npos ||
|
||||||
"Fail to set and compile_model with precision: " << type << std::endl;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user