Use absolute path in some cpuFuncTests (#12808)

This commit is contained in:
Tomasz Dołbniak 2022-08-30 10:12:06 +02:00 committed by GitHub
parent 47068735a4
commit c5588f6f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -147,7 +147,8 @@ static void infer_model(InferenceEngine::Core& ie, InferenceEngine::CNNNetwork&
}
static std::string model_full_path(const char* path) {
return FileUtils::makePath<char>(TEST_MODELS, path);
return FileUtils::makePath<char>(
FileUtils::makePath<char>(CommonTestUtils::getExecutableDirectory(), TEST_MODELS), path);
}
TEST(Extension, XmlModelWithCustomAbs) {

View File

@ -3,6 +3,7 @@
//
#include <file_utils.h>
#include "common_test_utils/file_utils.hpp"
#include "onnx/quantized_models_tests.hpp"
namespace ONNXTestsDefinitions {
@ -19,7 +20,8 @@ void QuantizedModelsTests::SetUp() {
}
static std::string getModelFullPath(const char* path) {
return FileUtils::makePath<char>(TEST_MODELS, path);
return FileUtils::makePath<char>(
FileUtils::makePath<char>(CommonTestUtils::getExecutableDirectory(), TEST_MODELS), path);
}
void QuantizedModelsTests::runModel(const char* model, const LayerInputTypes& expected_layer_input_types, float thr) {