ci: use .txt files instead of .log file for better preview

This commit is contained in:
Fu Hanxi
2022-10-28 13:21:27 +08:00
parent 57f6733160
commit 7bb4aea90e
7 changed files with 17 additions and 16 deletions

View File

@@ -107,7 +107,7 @@ class Env(object):
dut_config = dict()
dut_config.update(dut_init_args)
dut = dut_class(dut_name, port,
os.path.join(self.log_path, dut_name + '.log'),
os.path.join(self.log_path, dut_name + '.txt'),
app_inst,
**dut_config)
self.allocated_duts[dut_name] = {'port': port, 'dut': dut}

View File

@@ -30,7 +30,7 @@ _COLOR_CODES = {
def _get_log_file_name():
if Env.Env.CURRENT_LOG_FOLDER:
file_name = os.path.join(Env.Env.CURRENT_LOG_FOLDER, 'console.log')
file_name = os.path.join(Env.Env.CURRENT_LOG_FOLDER, 'console.txt')
else:
raise OSError('env log folder does not exist, will not save to log file')
return file_name