partly reverted d6f7664 (#21454)

This commit is contained in:
Mikhail Ryzhov 2023-12-05 10:28:17 +01:00 committed by GitHub
parent 62f5bd6570
commit 725aae4dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -873,7 +873,7 @@ class TestParallelRunner:
) )
if os.path.isfile(interapted_log_path): if os.path.isfile(interapted_log_path):
test_cnt_real_saved_now += 1 test_cnt_real_saved_now += 1
if self._is_save_cache and os.path.isfile(self._cache_path): if self._is_save_cache:
test_times.sort(reverse=True) test_times.sort(reverse=True)
with open(self._cache_path, "w", encoding=constants.ENCODING) as cache_file: with open(self._cache_path, "w", encoding=constants.ENCODING) as cache_file:
cache_file.writelines( cache_file.writelines(