[IE TESTS] Fix conformance test names (#5095)

* [IE TESTS] Fix conformance test names

* sdl;

* APPLY COMMENTS FROM MIKHAIL
This commit is contained in:
Irina Efode 2021-04-02 17:46:50 +03:00 committed by GitHub
parent 69e71b7287
commit 812175268a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "common_test_utils/file_utils.hpp"
#include "functional_test_utils/core_config.hpp"
#include "shared_test_classes/read_ir/read_ir.hpp"
@ -14,8 +15,12 @@ std::string ReadIRTest::getTestCaseName(const testing::TestParamInfo<std::tuple<
std::tie(pathToModel, deviceName) = obj.param;
std::ostringstream result;
result << "ModelPath=" << pathToModel << "_";
result << "TargetDevice=" << deviceName << "_";
auto splittedFilename = CommonTestUtils::splitStringByDelimiter(pathToModel, CommonTestUtils::FileSeparator);
if (splittedFilename.size() > 1) {
result << "PRC=" << *std::next(splittedFilename.rbegin()) << "_";
}
result << "IR_name=" << splittedFilename.back() << "_";
result << "TargetDevice=" << deviceName;
return result.str();
}