修复retry异常以及lite设备异常的bug

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2023-11-02 20:48:24 +08:00
parent 43e70ddac3
commit 02cd2cded7
2 changed files with 2 additions and 8 deletions

View File

@ -322,7 +322,7 @@ class Scheduler(object):
test_labels = []
for serial, device in used_devices.items():
serials.append(convert_serial(serial))
platform = str(device.test_platform)
platform = str(device.label).capitalize()
test_label = str(device.label).capitalize()
if platform not in platforms:
platforms.append(platform)

View File

@ -785,13 +785,7 @@ class ResultReporter(IReporter):
return
_, command, report_path = Scheduler.command_queue[-1]
record_info = {
"command": command,
"session_id": os.path.split(report_path)[-1],
"report_path": report_path,
"unsuccessful_params": self.record_params,
"data_reports": self.record_reports
}
record_info = self._parse_record_from_data(command, report_path)
def encode(content):
# inner function to encode