aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-11-14 21:43:41 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-11-14 21:55:14 +0300
commit7f616bd2969d2a94edb34570d52813e98a1118fc (patch)
tree29034d13c3a5fe456e1f1caae2ceb50f58f7817e /library/cpp/testing
parent5c12a50c03bee064a5a650ffebfa033a04257ff7 (diff)
downloadydb-7f616bd2969d2a94edb34570d52813e98a1118fc.tar.gz
Allow per-module switch to atd_ro_snapshot from arcadia root
commit_hash:d8d2d7bd705c50833ff6e4b03fda17f1c97ca3b7
Diffstat (limited to 'library/cpp/testing')
-rw-r--r--library/cpp/testing/common/env.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/testing/common/env.cpp b/library/cpp/testing/common/env.cpp
index 13f3f186af..67e081c371 100644
--- a/library/cpp/testing/common/env.cpp
+++ b/library/cpp/testing/common/env.cpp
@@ -41,6 +41,10 @@ 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;