From 5031319bb76f4495600e8940c01ae369ce5191ba Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Wed, 25 Oct 2017 14:18:47 +0200 Subject: [PATCH] test/xtimer_hang: accept 10% timing deviations --- tests/xtimer_hang/tests/01-run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/xtimer_hang/tests/01-run.py b/tests/xtimer_hang/tests/01-run.py index b1bae55acb..9e58b4e945 100755 --- a/tests/xtimer_hang/tests/01-run.py +++ b/tests/xtimer_hang/tests/01-run.py @@ -15,7 +15,9 @@ import testrunner def testfunc(child): 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_exact("[SUCCESS]")