Synchronize test_cores_count in _register_core.
Related test: test_ya_make.py::TestYaMake::test_core_dump_files_recovering[test_several_launches-True-links4])
jupytercloud/arcadia_kernel/tests/small/py3 (jupytercloud.arcadia_kernel.tests.small.test_arcadia_info.py::test_svn_revision) checks svn_revisions in different binaries.
Other failure are known.
Note: mandatory check (NEED_CHECK) was skipped
import os
import functools
import json
+import threading
import six
+_lock = threading.Lock()
+
+
def _get_ya_config():
try:
import pytest
@@ -201,9 +205,12 @@ def global_resources():
def _register_core(name, binary_path, core_path, bt_path, pbt_path):
config = _get_ya_config()
+
+ with _lock:
config.test_cores_count += 1
- log_entry = config.test_logs[config.current_item_nodeid]
count_str = '' if config.test_cores_count == 1 else str(config.test_cores_count)
+
+ log_entry = config.test_logs[config.current_item_nodeid]
if binary_path:
log_entry['{} binary{}'.format(name, count_str)] = binary_path
if core_path:
