diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:39 +0300 |
commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /library/cpp/testing/common | |
parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
download | ydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/common')
-rw-r--r-- | library/cpp/testing/common/env.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/testing/common/env.cpp b/library/cpp/testing/common/env.cpp index fa3a47fe16..fc70e0f5b9 100644 --- a/library/cpp/testing/common/env.cpp +++ b/library/cpp/testing/common/env.cpp @@ -1,7 +1,7 @@ #include "env.h" -#include <build/scripts/c_templates/svnversion.h> - +#include <build/scripts/c_templates/svnversion.h> + #include <util/folder/dirut.h> #include <util/folder/path.h> #include <util/generic/singleton.h> @@ -16,22 +16,22 @@ #include <library/cpp/json/json_value.h> #include <library/cpp/json/json_writer.h> -TString ArcadiaSourceRoot() { - if (const auto& sourceRoot = NPrivate::GetTestEnv().SourceRoot) { - return sourceRoot; - } else { - return GetArcadiaSourcePath(); - } -} - -TString BuildRoot() { - if (const auto& buildRoot = NPrivate::GetTestEnv().BuildRoot) { - return buildRoot; - } else { - return GetArcadiaSourcePath(); - } -} - +TString ArcadiaSourceRoot() { + if (const auto& sourceRoot = NPrivate::GetTestEnv().SourceRoot) { + return sourceRoot; + } else { + return GetArcadiaSourcePath(); + } +} + +TString BuildRoot() { + if (const auto& buildRoot = NPrivate::GetTestEnv().BuildRoot) { + return buildRoot; + } else { + return GetArcadiaSourcePath(); + } +} + TString ArcadiaFromCurrentLocation(TStringBuf where, TStringBuf path) { return (TFsPath(ArcadiaSourceRoot()) / TFsPath(where).Parent() / path).Fix(); } |