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:
parent
33ca462af6
commit
e27675bc10
@ -68,8 +68,7 @@ int main(void)
|
||||
if (offset > value) {
|
||||
value = offset;
|
||||
}
|
||||
printf(".");
|
||||
fflush(stdout);
|
||||
printf("Sample %u\n", i);
|
||||
samples++;
|
||||
}
|
||||
printf("\n");
|
||||
|
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user