From 08ab69adc6a4958ba226238d3a2f8213bcdbec3d Mon Sep 17 00:00:00 2001
From: nkozlovskiy <nmk@ydb.tech>
Date: Fri, 26 May 2023 19:08:57 +0300
Subject: rename Y_TEST_FILTER option to Y_UNITTEST_FILTER_FILE

rename Y_TEST_FILTER to Y_UNITTEST_FILTER_FILE, also --test-filter to --filter-file
---
 library/cpp/testing/unittest/utmain.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'library/cpp/testing/unittest/utmain.cpp')

diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp
index 53797b23d2..e5f073d529 100644
--- a/library/cpp/testing/unittest/utmain.cpp
+++ b/library/cpp/testing/unittest/utmain.cpp
@@ -543,7 +543,7 @@ private:
             .SetLatency(1);
 
         PushDownEnvVar(&options, Y_UNITTEST_OUTPUT_CMDLINE_OPTION);
-        PushDownEnvVar(&options, Y_UNITTEST_TEST_FILTER_OPTION);
+        PushDownEnvVar(&options, Y_UNITTEST_TEST_FILTER_FILE_OPTION);
         PushDownEnvVar(&options, "TMPDIR");
 
         TShellCommand cmd(AppName, args, options);
@@ -693,7 +693,7 @@ static int DoUsage(const char* progname) {
          << "  --fork-tests          run each test in a separate process\n"
          << "  --trace-path          path to the trace file to be generated\n"
          << "  --trace-path-append   path to the trace file to be appended\n"
-         << "  --test-filter         path to the test filters ([+|-]test) file (" << Y_UNITTEST_TEST_FILTER_OPTION << ")\n";
+         << "  --filter-file         path to the test filters ([+|-]test) file (" << Y_UNITTEST_TEST_FILTER_FILE_OPTION << ")\n";
     return 0;
 }
 
@@ -759,7 +759,7 @@ int NUnitTest::RunMain(int argc, char** argv) {
 
 
         // load filters from environment variable
-        TString filterFn = GetEnv(Y_UNITTEST_TEST_FILTER_OPTION);
+        TString filterFn = GetEnv(Y_UNITTEST_TEST_FILTER_FILE_OPTION);
         if (!filterFn.empty()) {
             processor.FilterFromFile(filterFn);
         }
@@ -832,7 +832,7 @@ int NUnitTest::RunMain(int argc, char** argv) {
                         traceProcessors.push_back(std::make_shared<TJUnitProcessor>(TString(fileName), argv[0]));
                     }
                     hasJUnitProcessor = true;
-                } else if (strcmp(name, "--test-filter") == 0) {
+                } else if (strcmp(name, "--filter-file") == 0) {
                     ++i;
                     TString filename(argv[i]);
                     processor.FilterFromFile(filename);
-- 
cgit v1.2.3