Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ats/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def log_prepend(self, test, outhandle):

if hasattr(test, 'rs_filename'):
if os.path.isfile(test.rs_filename):
myfile = open(test.rs_filename, mode='r')
myfile = open(test.rs_filename, mode='r', errors=ignore)
all_of_it = myfile.read()
myfile.close()
print("%sjsrun_rs =\n%s" % (magic, all_of_it), file=test.outhandle)
Expand Down
4 changes: 2 additions & 2 deletions ats/reportutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def writeFailedCodeTestCase(f, test, err_path):
msg = ""
err_files = glob.glob(os.path.join(err_path, '*' + str(test.serialNumber) + '*.log.err'))
if len(err_files) > 0:
with open(err_files[0], 'r') as logferr:
with open(err_files[0], 'r', errors='ignore') as logferr:
# not readlines() - there are standard xml escapes to fix, we don't want to iterate over
# the whole message.
rawmsg = logferr.read()
Expand All @@ -137,7 +137,7 @@ def writeFailedCodeTestCase(f, test, err_path):

log_files = glob.glob(os.path.join(err_path, '*' + str(test.serialNumber) + '*.log'))
if len(log_files) > 0:
with open(log_files[0], 'r') as logf:
with open(log_files[0], 'r', errors='ignore') as logf:
rawmsg = logf.read()
msg += "***** ats log file: *****\n running from clone code \n"
msg += cleanErrorMessage(rawmsg)
Expand Down
2 changes: 1 addition & 1 deletion ats/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def recordOutput (self, groupFailure):

if self.testStdout != 'terminal':
try:
f = open(self.outname, 'r')
f = open(self.outname, 'r', errors='ignore')
except IOError as e:
self.notes = ['Missing output file.']
log('Missing output file', self.outname, e)
Expand Down