Skip to content

Commit

Permalink
Merge branch 'ci/pipeline' into 'master'
Browse files Browse the repository at this point in the history
pytest: set timeout=36000

See merge request speech-recognition-framework/esp-skainet!28
  • Loading branch information
sun-xiangyu committed Jun 27, 2023
2 parents 6399cd9 + cc77f0c commit c8bf432
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/wakenet/pytest_wakenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def save_report(results):

@pytest.mark.target('esp32s3')
@pytest.mark.env('korvo-2')
@pytest.mark.timeout(60000)
@pytest.mark.parametrize(
'config',
[
'hilexin',
# 'hiesp',
'hiesp',
],
)
def test_wakenet(dut: Dut)-> None:
Expand All @@ -38,7 +39,8 @@ def match_log(pattern, timeout=18000):
def match_log_int(pattern, timeout=18000):
num = match_log(pattern, timeout)
return int(num)


timeout = 36000
results = {}
basedir = os.path.dirname(dut.logfile)
report_file = os.path.join(basedir, "report.json")
Expand All @@ -52,7 +54,6 @@ def match_log_int(pattern, timeout=18000):

# Get the trigger times and memory siize
# The following formats are defined in perf_tester.c
timeout = 18000 # 5 hours
psram_pattern = re.compile(rb'FAR PSRAM: (\d+) KB')
sram_pattern = re.compile(rb'FAR SRAM: (\d+) KB')
psram_size = match_log_int(psram_pattern, timeout)
Expand Down Expand Up @@ -82,4 +83,4 @@ def match_log_int(pattern, timeout=18000):
assert trigger_times >= required_times

save_report(results)
dut.expect('TEST DONE', timeout=timeout)
dut.expect('TEST DONE', timeout=timeout)

0 comments on commit c8bf432

Please sign in to comment.