Fix error with incorrect symbol in ParallelRunner (#15934)

* uncomment run

* Fix error with incorrect symbol in ParallelRunner

* Remove extra
This commit is contained in:
Irina Efode authored and GitHub committed 2023-02-24 17:53:24 +04:00
1 parent 5c6ef54127
commit e21c71dd48
1 file changed
+7 -2
@@ -400,7 +400,12 @@ class TestParallelRunner:
test_log = list()
dir = None
test_cnt_expected = test_cnt_real_saved_now = test_cnt_real_saved_before = 0
for line in log_file.readlines():
try:
lines = log_file.readlines()
except:
lines = log.read_text(encoding='ascii', errors='ignore').split('\n')
for line in lines:
if constants.GTEST_FILTER in line:
line = line[line.find(constants.GTEST_FILTER):]
test_cnt_expected = line.count(':')
@@ -493,4 +498,4 @@ if __name__ == "__main__":
logger.error("Run is not successful")
sys.exit(-1)
else:
logger.info("Run is successful")
logger.info("Run is successful")