Skip to content

Commit f5513c6

Browse files
Haiqi Panpeterchen-intel
Haiqi Pan
andauthored
[conformance] Mark DEVICE_ID mandatory for HW plugin (openvinotoolkit#26297)
### Details: - *DEVICE_ID is optional for SW plugin and mandatory for HW plugin* ### Tickets: - *N/A* --------- Co-authored-by: Chen Peter <peter.chen@intel.com>
1 parent 266ce7b commit f5513c6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/src/ov_plugin/properties.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ INSTANTIATE_TEST_SUITE_P(ov_plugin, OVCheckSetIncorrectRWMetricsPropsTests,
8282
{}, sw_plugin_in_target_device(ov::test::utils::target_device)))),
8383
OVCheckSetIncorrectRWMetricsPropsTests::getTestCaseName);
8484

85-
INSTANTIATE_TEST_SUITE_P(ov_plugin_mandatory, OVCheckChangePropComplieModleGetPropTests_DEVICE_ID,
86-
::testing::Combine(
87-
::testing::Values(ov::test::utils::target_device),
88-
::testing::Values(ov::AnyMap({}))),
89-
OVCheckChangePropComplieModleGetPropTests_DEVICE_ID::getTestCaseName);
85+
INSTANTIATE_TEST_SUITE_P(
86+
ov_plugin,
87+
OVCheckChangePropComplieModleGetPropTests_DEVICE_ID,
88+
::testing::Combine(::testing::Values(ov::test::utils::target_device), ::testing::Values(ov::AnyMap({}))),
89+
MARK_MANDATORY_PROPERTY_FOR_HW_DEVICE(OVCheckChangePropComplieModleGetPropTests_DEVICE_ID::getTestCaseName));
9090

9191
/* Add prefix mandatory_ to suffix (getTestCaseName) of HW plugin test cases */
9292
INSTANTIATE_TEST_SUITE_P(

src/tests/functional/plugin/shared/src/behavior/ov_plugin/properties_tests.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,6 @@ TEST_P(OVCheckGetSupportedROMetricsPropsTests, ChangeCorrectProperties) {
479479
}
480480

481481
TEST_P(OVCheckChangePropComplieModleGetPropTests_DEVICE_ID, ChangeCorrectDeviceProperties) {
482-
if (sw_plugin_in_target_device(target_device)) {
483-
return;
484-
}
485482
std::vector<ov::PropertyName> supported_properties;
486483
OV_ASSERT_NO_THROW(supported_properties = core->get_property(target_device, ov::supported_properties));
487484
auto supported = util::contains(supported_properties, ov::device::id);

0 commit comments

Comments
 (0)