aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/testing/yatest_common/yatest/common/runtime.py
diff options
context:
space:
mode:
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/runtime.py')
-rw-r--r--library/python/testing/yatest_common/yatest/common/runtime.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py
index 43e5c5b0f6..6e6c3c8759 100644
--- a/library/python/testing/yatest_common/yatest/common/runtime.py
+++ b/library/python/testing/yatest_common/yatest/common/runtime.py
@@ -260,7 +260,10 @@ def cxx_compiler_path():
def global_resources():
try:
- return json.loads(os.environ.get("YA_GLOBAL_RESOURCES"))
+ if "YA_GLOBAL_RESOURCES" in os.environ:
+ return json.loads(os.environ.get("YA_GLOBAL_RESOURCES"))
+ else:
+ return _get_ya_plugin_instance().get_context("ya_global_resources")
except (TypeError, ValueError):
return {}