Skip to content

Commit

Permalink
Use absolute path in some cpuFuncTests (#12902)
Browse files Browse the repository at this point in the history
* Use absolute path in some cpuFuncTests

* Missing include
  • Loading branch information
Tomasz Dołbniak committed Sep 6, 2022
1 parent 917a465 commit d84da15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/tests/functional/plugin/cpu/extension/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <ngraph/ngraph.hpp>
#include <file_utils.h>
#include <common_test_utils/test_assertions.hpp>
#include <common_test_utils/file_utils.hpp>

class CustomAbsKernel : public InferenceEngine::ILayerExecImpl {
public:
Expand Down Expand Up @@ -146,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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//

#include <file_utils.h>
#include "common_test_utils/file_utils.hpp"
#include "onnx/quantized_models_tests.hpp"

namespace ONNXTestsDefinitions {
Expand All @@ -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) {
Expand Down

0 comments on commit d84da15

Please sign in to comment.