diff options
author | aosipenko <aosipenko@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
commit | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch) | |
tree | 8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /library/cpp/testing/common | |
parent | d2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff) | |
download | ydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz |
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/common')
-rw-r--r-- | library/cpp/testing/common/env.cpp | 18 | ||||
-rw-r--r-- | library/cpp/testing/common/env.h | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/testing/common/env.cpp b/library/cpp/testing/common/env.cpp index fa3a47fe16..2da27631e3 100644 --- a/library/cpp/testing/common/env.cpp +++ b/library/cpp/testing/common/env.cpp @@ -2,7 +2,7 @@ #include <build/scripts/c_templates/svnversion.h> -#include <util/folder/dirut.h> +#include <util/folder/dirut.h> #include <util/folder/path.h> #include <util/generic/singleton.h> #include <util/stream/file.h> @@ -48,21 +48,21 @@ TString GetArcadiaTestsData() { TString path = NPrivate::GetCwd(); const char pathsep = GetDirectorySeparator(); - while (!path.empty()) { + while (!path.empty()) { TString dataDir = path + "/arcadia_tests_data"; if (IsDir(dataDir)) { - return dataDir; + return dataDir; } - + size_t pos = path.find_last_of(pathsep); if (pos == TString::npos) { - pos = 0; + pos = 0; } - path.erase(pos); - } - + path.erase(pos); + } + return {}; -} +} TString GetWorkPath() { TString workPath = NPrivate::GetTestEnv().WorkPath; diff --git a/library/cpp/testing/common/env.h b/library/cpp/testing/common/env.h index 7b89aa1bed..8256fc8656 100644 --- a/library/cpp/testing/common/env.h +++ b/library/cpp/testing/common/env.h @@ -1,12 +1,12 @@ #pragma once - + #include <unordered_map> #include <util/folder/path.h> #include <util/generic/string.h> #include <util/generic/strbuf.h> #include <util/system/src_location.h> - + // @brief return full path to arcadia root TString ArcadiaSourceRoot(); |