aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing/yatest_lib/ya.py
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-08-23 10:51:27 +0300
committeralexv-smirnov <alex@ydb.tech>2023-08-23 11:04:05 +0300
commit8bedeb58ada0550f8dce2b937b55ec7709b7a1f2 (patch)
tree904bcc356544c7614e3f6939f1b690d529c31149 /library/python/testing/yatest_lib/ya.py
parentf37f4e4ff7ae0673f471ef553def88e25c91b522 (diff)
downloadydb-8bedeb58ada0550f8dce2b937b55ec7709b7a1f2.tar.gz
Enable recipe to run with test env file name in the command line
Diffstat (limited to 'library/python/testing/yatest_lib/ya.py')
-rw-r--r--library/python/testing/yatest_lib/ya.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/python/testing/yatest_lib/ya.py b/library/python/testing/yatest_lib/ya.py
index 607694e0c5..89a82b55a6 100644
--- a/library/python/testing/yatest_lib/ya.py
+++ b/library/python/testing/yatest_lib/ya.py
@@ -39,6 +39,7 @@ class Ya(object):
valgrind_path=None,
gdb_path=None,
data_root=None,
+ env_file=None,
):
context_file_path = os.environ.get("YA_TEST_CONTEXT_FILE", None)
if context_file_path:
@@ -101,7 +102,7 @@ class Ya(object):
self._context["sanitize"] = context_build.get("sanitizer")
self._context["ya_trace_path"] = context_internal.get("trace_file")
- self._env_file = context_internal.get("env_file")
+ self._env_file = context_internal.get("env_file") or env_file
if context:
for k, v in context.items():