[TESTS] Fix QN tests for case when device id is reported (#14601)

This commit is contained in:
Nadezhda Ageeva 2022-12-15 11:41:51 +00:00 committed by GitHub
parent 33b0ca885a
commit 08e46a20e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "common_test_utils/file_utils.hpp"
#include "functional_test_utils/core_config.hpp"
#include "ie_icore.hpp"
namespace LayerTestsUtils {
@ -122,7 +123,7 @@ void LayerTestsCommon::QueryNetwork() {
ASSERT_EQ(res.second, ctx->getDeviceName());
} catch (...) {
// otherwise, compare with originally used device name
ASSERT_EQ(res.second, targetDevice);
ASSERT_EQ(InferenceEngine::DeviceIDParser(res.second).getDeviceName(), targetDevice);
}
actual.insert(res.first);
}