aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing/yatest_lib
diff options
context:
space:
mode:
Diffstat (limited to 'library/python/testing/yatest_lib')
-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():