From 2ddd369ce9c41bfaa875034c1357f7d7a5ff5bb7 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Wed, 7 Oct 2020 16:54:24 +0200 Subject: [PATCH] tests/malloc: increase timeout, for larger BOARDs The test timeouts on nucleo-f767zi. --- tests/malloc/tests/01-run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/malloc/tests/01-run.py b/tests/malloc/tests/01-run.py index fa5cb8d53c..fea0d3c031 100755 --- a/tests/malloc/tests/01-run.py +++ b/tests/malloc/tests/01-run.py @@ -9,6 +9,10 @@ import sys from testrunner import run +# For BOARD's with large amount of RAM allocating all chunks takes longer +# than 10s +ALLOCATION_TIMEOUT = 20 + def testfunc(child): child.expect(r'CHUNK_SIZE: (\d+)\r\n') @@ -19,7 +23,8 @@ def testfunc(child): for _ in range(number_of_tests): child.expect(r"Allocated {} Bytes at 0x[a-z0-9]+, total [a-z0-9]+\r\n" .format(chunk_size)) - child.expect(r'Allocations count: (\d+)\r\n') + child.expect(r'Allocations count: (\d+)\r\n', + timeout=ALLOCATION_TIMEOUT) allocations = int(child.match.group(1)) assert allocations > 0 if initial_allocations == 0: