ci: Add more information for flash performance test

This commit is contained in:
Cao Sen Miao
2021-03-25 17:36:17 +08:00
parent 00a66083c7
commit 2059990c94
2 changed files with 59 additions and 15 deletions

View File

@@ -32,6 +32,7 @@ except ImportError:
from serial.tools import list_ports
from tiny_test_fw import DUT, Utility
from tiny_test_fw.Utility import format_case_id
try:
import esptool
@@ -70,7 +71,7 @@ class IDFRecvThread(DUT.RecvThread):
def collect_performance(self, comp_data):
matches = self.PERFORMANCE_PATTERN.findall(comp_data)
for match in matches:
Utility.console_log('[Performance][{}]: {}'.format(match[0], match[1]),
Utility.console_log('[Performance][{}]: {}'.format(format_case_id(match[0], self.dut.app.target, self.dut.app.config_name), match[1]),
color='orange')
self.performance_items.put((match[0], match[1]))