1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/periph_rtt_min: adapt for slower RTTs

This commit is contained in:
Martine Lenders 2021-04-14 11:11:42 +02:00
parent 33ca462af6
commit e27675bc10
No known key found for this signature in database
GPG Key ID: CCD317364F63286F
2 changed files with 6 additions and 6 deletions

View File

@ -68,8 +68,7 @@ int main(void)
if (offset > value) {
value = offset;
}
printf(".");
fflush(stdout);
printf("Sample %u\n", i);
samples++;
}
printf("\n");

View File

@ -15,10 +15,11 @@ def testfunc(child):
child.expect(r"Evaluate RTT_MIN_OFFSET over (\d+) samples")
exp_samples = int(child.match.group(1))
child.expect(
r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} samples: \d+'
.format(samples=exp_samples)
)
test_end = r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} ' \
r'samples: \d+'.format(samples=exp_samples)
test_ongoing = r'Sample \d+'
while child.expect([test_end, test_ongoing]):
pass
if __name__ == "__main__":