aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/common/env.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-12-12 13:15:03 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-12-12 13:33:22 +0300
commit2fa0ef191a3e4958ba689ecdc0aabc756385ca13 (patch)
tree8833e1fe6be84310349bc960c852f28902bb0d0b /library/cpp/testing/common/env.cpp
parenta0ab79ee3d99df566509c5cb1e42129017424703 (diff)
downloadydb-2fa0ef191a3e4958ba689ecdc0aabc756385ca13.tar.gz
Switch all tests to atd from snapshot
commit_hash:a9a7c2df09742a540851227c4fcb7d925edd9793
Diffstat (limited to 'library/cpp/testing/common/env.cpp')
-rw-r--r--library/cpp/testing/common/env.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/library/cpp/testing/common/env.cpp b/library/cpp/testing/common/env.cpp
index 67e081c371..1440186d78 100644
--- a/library/cpp/testing/common/env.cpp
+++ b/library/cpp/testing/common/env.cpp
@@ -41,31 +41,7 @@ TString BinaryPath(TStringBuf path) {
}
TString GetArcadiaTestsData() {
- if (GetEnv("USE_ATD_FROM_SNAPSHOT")) {
- return ArcadiaSourceRoot() + "/atd_ro_snapshot";
- }
-
- TString atdRoot = NPrivate::GetTestEnv().ArcadiaTestsDataDir;
- if (atdRoot) {
- return atdRoot;
- }
-
- TString path = NPrivate::GetCwd();
- const char pathsep = GetDirectorySeparator();
- while (!path.empty()) {
- TString dataDir = path + "/arcadia_tests_data";
- if (IsDir(dataDir)) {
- return dataDir;
- }
-
- size_t pos = path.find_last_of(pathsep);
- if (pos == TString::npos) {
- pos = 0;
- }
- path.erase(pos);
- }
-
- return {};
+ return ArcadiaSourceRoot() + "/atd_ro_snapshot";
}
TString GetWorkPath() {