Skip to content

Commit

Permalink
Fix error with incorrect symbol in ParallelRunner (#15934)
Browse files Browse the repository at this point in the history
* uncomment run

* Fix error with incorrect symbol in ParallelRunner

* Remove extra
  • Loading branch information
iefode authored Feb 24, 2023
1 parent 5c6ef54 commit e21c71d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,12 @@ def __save_log(logs_dir, dir, test_name):
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(':')
Expand Down Expand Up @@ -493,4 +498,4 @@ def __save_log(logs_dir, dir, test_name):
logger.error("Run is not successful")
sys.exit(-1)
else:
logger.info("Run is successful")
logger.info("Run is successful")

0 comments on commit e21c71d

Please sign in to comment.