aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/common/env.cpp
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch)
treecfd2e2baa05c3196f2caacbb63c32e1df40bc3de /library/cpp/testing/common/env.cpp
parent7489e4682331202b9c7d863c0898eb83d7b12c2b (diff)
downloadydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/common/env.cpp')
-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 fa3a47fe16..a6acf90e2c 100644
--- a/library/cpp/testing/common/env.cpp
+++ b/library/cpp/testing/common/env.cpp
@@ -1,5 +1,5 @@
-#include "env.h"
-
+#include "env.h"
+
#include <build/scripts/c_templates/svnversion.h>
#include <util/folder/dirut.h>
@@ -32,14 +32,14 @@ TString BuildRoot() {
}
}
-TString ArcadiaFromCurrentLocation(TStringBuf where, TStringBuf path) {
- return (TFsPath(ArcadiaSourceRoot()) / TFsPath(where).Parent() / path).Fix();
-}
-
-TString BinaryPath(TStringBuf path) {
- return (TFsPath(BuildRoot()) / path).Fix();
-}
-
+TString ArcadiaFromCurrentLocation(TStringBuf where, TStringBuf path) {
+ return (TFsPath(ArcadiaSourceRoot()) / TFsPath(where).Parent() / path).Fix();
+}
+
+TString BinaryPath(TStringBuf path) {
+ return (TFsPath(BuildRoot()) / path).Fix();
+}
+
TString GetArcadiaTestsData() {
TString atdRoot = NPrivate::GetTestEnv().ArcadiaTestsDataDir;
if (atdRoot) {
@@ -47,21 +47,21 @@ TString GetArcadiaTestsData() {
}
TString path = NPrivate::GetCwd();
- const char pathsep = GetDirectorySeparator();
+ const char pathsep = GetDirectorySeparator();
while (!path.empty()) {
TString dataDir = path + "/arcadia_tests_data";
- if (IsDir(dataDir)) {
+ if (IsDir(dataDir)) {
return dataDir;
- }
+ }
- size_t pos = path.find_last_of(pathsep);
- if (pos == TString::npos) {
+ size_t pos = path.find_last_of(pathsep);
+ if (pos == TString::npos) {
pos = 0;
- }
+ }
path.erase(pos);
}
- return {};
+ return {};
}
TString GetWorkPath() {
@@ -143,7 +143,7 @@ void StopProcessCoreWatching(int pid) {
}
}
-bool FromYaTest() {
+bool FromYaTest() {
return NPrivate::GetTestEnv().IsRunningFromTest;
}