diff options
author | galaxycrab <UgnineSirdis@ydb.tech> | 2023-08-14 14:01:58 +0300 |
---|---|---|
committer | galaxycrab <UgnineSirdis@ydb.tech> | 2023-08-14 15:10:36 +0300 |
commit | 053d2b85be83ba00715652d16e2527d5e37b09b2 (patch) | |
tree | 7c1337ebb68ee10fc17e129167cbaff6aa227260 /library/cpp/testing/unittest/utmain.cpp | |
parent | 835330266c52d2d9c6e8852515240b4ff1addf0b (diff) | |
download | ydb-053d2b85be83ba00715652d16e2527d5e37b09b2.tar.gz |
Fix transfer env vars from parent to a forked test
Diffstat (limited to 'library/cpp/testing/unittest/utmain.cpp')
-rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp index e5f073d529..cae713e3ac 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -520,12 +520,6 @@ private: return EnabledTests_.find(name) != EnabledTests_.end(); } - void PushDownEnvVar(TShellCommandOptions* options, const TString& var) { - if (TString value = GetEnv(var)) { - options->Environment[var] = std::move(value); - } - } - void Run(std::function<void()> f, const TString& suite, const char* name, const bool forceFork) override { if (!(GetForkTests() || forceFork) || GetIsForked()) { return f(); @@ -542,10 +536,6 @@ private: .SetAsync(false) .SetLatency(1); - PushDownEnvVar(&options, Y_UNITTEST_OUTPUT_CMDLINE_OPTION); - PushDownEnvVar(&options, Y_UNITTEST_TEST_FILTER_FILE_OPTION); - PushDownEnvVar(&options, "TMPDIR"); - TShellCommand cmd(AppName, args, options); cmd.Run(); |