aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/common
diff options
context:
space:
mode:
authorMikhail Borisov <borisov.mikhail@gmail.com>2022-02-10 16:45:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:40 +0300
commit5d50718e66d9c037dc587a0211110b7d25a66185 (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/testing/common
parenta6a92afe03e02795227d2641b49819b687f088f8 (diff)
downloadydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/common')
-rw-r--r--library/cpp/testing/common/env.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/testing/common/env.cpp b/library/cpp/testing/common/env.cpp
index fc70e0f5b9..fa3a47fe16 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();
}