[CONFORMANCE] Fix throws tests on KEY_MULTI_DEVICE_PRIORITIES (#14446)

* [CONFORMANCE] Fix throws tests on KEY_MULTI_DEVICE_PRIORITIES

* Update test name in skip configs
This commit is contained in:
Sofya Balandina 2022-12-12 20:39:42 +00:00 committed by GitHub
parent a234d45b6c
commit f5a52dd732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -174,7 +174,6 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*OVClass.*QueryNetwork.*QueryNetwork(HETEROWithDeviceIDNoThrow|WithDeviceID|WithBigDeviceIDThrows|WithInvalidDeviceIDThrows|HETEROWithBigDeviceIDThrows).*)",
R"(.*OVClass.*LoadNetwork.*(DeviceID|MultiWithoutSettingDevicePrioritiesThrows).*)",
R"(.*OVClassLoadNetworkTest.*QueryNetwork(MULTIWithHETERO|HETEROWithMULTI)NoThrow_V10.*)",
R"(.*OVClassNetworkTestP.*QueryNetworkMultiThrows.*)",
R"(.*CachingSupportCase.*LoadNetworkCacheTestBase.*(TIwithLSTMcell1|MatMulBias|2InputSubtract)_(i|u).*)",
R"(.*CachingSupportCase.*ReadConcatSplitAssign.*)",
R"(.*IEClassQueryNetworkTest.*QueryNetwork.*)",

View File

@ -111,8 +111,6 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*DeviceID.*)",
// CVS-95608
R"(.*CachingSupportCase.*CompileModelCacheTestBase.*)",
R"(.*OVClassNetworkTestP.*QueryNetworkMultiThrows.*)",
R"(.*OVClassNetworkTestP.*LoadNetworkMultiWithoutSettingDevicePrioritiesThrows.*)",
R"(.*OVClassLoadNetworkTest.*QueryNetworkMULTIWithHETERONoThrow_V10.*)",
};

View File

@ -622,7 +622,7 @@ TEST_P(OVClassNetworkTestP, QueryNetworkHeteroActualNoThrow) {
ASSERT_LT(0, res.size());
}
TEST_P(OVClassNetworkTestP, QueryNetworkMultiThrows) {
TEST_P(OVClassNetworkTestP, QueryNetworkMultiNoThrows) {
ov::Core ie = createCoreWithTemplate();
ASSERT_NO_THROW(ie.query_model(actualNetwork, CommonTestUtils::DEVICE_MULTI));
}
@ -970,7 +970,15 @@ TEST_P(OVClassNetworkTestP, LoadNetworkActualNoThrow) {
TEST_P(OVClassNetworkTestP, LoadNetworkMultiWithoutSettingDevicePrioritiesThrows) {
ov::Core ie = createCoreWithTemplate();
try {
ie.compile_model(actualNetwork, CommonTestUtils::DEVICE_MULTI);
} catch (ov::Exception& error) {
EXPECT_PRED_FORMAT2(testing::IsSubstring,
std::string("KEY_MULTI_DEVICE_PRIORITIES key is not set for"),
error.what());
} catch (...) {
FAIL() << "compile_model is failed for unexpected reason.";
}
}
TEST_P(OVClassNetworkTestP, LoadNetworkActualHeteroDeviceNoThrow) {