Merge branch 'ci/shorter_performance_test_log' into 'master'

ci: optimize performance test log

See merge request espressif/esp-idf!13607
This commit is contained in:
He Yin Ling
2021-05-21 06:48:16 +00:00
2 changed files with 2 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ class JunitReport(object):
assert cls.JUNIT_CURRENT_TEST_CASE assert cls.JUNIT_CURRENT_TEST_CASE
for item in performance_items: for item in performance_items:
cls.JUNIT_CURRENT_TEST_CASE.stdout += '[{}]: {}\n'.format(item[0], item[1]) cls.JUNIT_CURRENT_TEST_CASE.stdout += '[Performance][{}]: {}\n'.format(item[0], item[1])
def test_method(**kwargs): def test_method(**kwargs):

View File

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