mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #7834 from haukepetersen/fix_test_xtimer_hang
test/xtimer_hang: accept 10% timing deviations
This commit is contained in:
commit
775609dcac
@ -15,7 +15,9 @@ import testrunner
|
|||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
child.expect_exact("[START]")
|
child.expect_exact("[START]")
|
||||||
|
|
||||||
for i in range(100):
|
# due to timer inaccuracies, boards might not display exactly 100 steps, so
|
||||||
|
# we accept 10% deviation
|
||||||
|
for i in range(90):
|
||||||
child.expect(u"Testing \( +\d+%\)")
|
child.expect(u"Testing \( +\d+%\)")
|
||||||
|
|
||||||
child.expect_exact("[SUCCESS]")
|
child.expect_exact("[SUCCESS]")
|
||||||
|
Loading…
Reference in New Issue
Block a user