From dfac195ffef937985ce5defebe01c7acd23a1e27 Mon Sep 17 00:00:00 2001 From: Sofya Balandina Date: Tue, 22 Mar 2022 09:26:08 +0300 Subject: [PATCH] Fix saving report in dir with more than one non-existing level (#11088) --- src/tests/ie_test_utils/common_test_utils/file_utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/ie_test_utils/common_test_utils/file_utils.hpp b/src/tests/ie_test_utils/common_test_utils/file_utils.hpp index 7fac7941498..44f3f68365d 100644 --- a/src/tests/ie_test_utils/common_test_utils/file_utils.hpp +++ b/src/tests/ie_test_utils/common_test_utils/file_utils.hpp @@ -185,8 +185,8 @@ inline int createDirectoryRecursive(const std::string& dirPath) { copyDirPath = copyDirPath.substr(0, pos); } while (!nested_dir_names.empty()) { - std::string a = copyDirPath + nested_dir_names.back(); - if (createDirectory(a) != 0) { + copyDirPath = copyDirPath + nested_dir_names.back(); + if (createDirectory(copyDirPath) != 0) { return -1; } nested_dir_names.pop_back();