From b3ed7ade10d18e8ecd9bfc64d056bdbb2a1501f6 Mon Sep 17 00:00:00 2001 From: danpetry Date: Fri, 12 Apr 2019 11:34:14 +0200 Subject: [PATCH] tests/periph_rtt: Correct the test script syntax Previously the test was failing due to apparently incorrect Python syntax in the testrunner script. This fix corrects this and the test now passes. --- tests/periph_rtt/tests/01-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/periph_rtt/tests/01-run.py b/tests/periph_rtt/tests/01-run.py index 653ad1d4ce..268770a9d4 100755 --- a/tests/periph_rtt/tests/01-run.py +++ b/tests/periph_rtt/tests/01-run.py @@ -17,7 +17,7 @@ MAX_HELLOS = 5 def testfunc(child): child.expect(r'This test will display \'Hello\' every (\d+) seconds') - period = int(child.match[1]) + period = int(child.match.group(1)) child.expect_exact('Initializing the RTT driver') child.expect(r'RTT now: \d+') child.expect(r'Setting initial alarm to now \+ {} s \(\d+\)'