Browse Source

Fix transfer env vars from parent to a forked test

galaxycrab 1 year ago
parent
commit
053d2b85be
1 changed files with 0 additions and 10 deletions
  1. 0 10
      library/cpp/testing/unittest/utmain.cpp

+ 0 - 10
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();