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) {
|
if (offset > value) {
|
||||||
value = offset;
|
value = offset;
|
||||||
}
|
}
|
||||||
printf(".");
|
printf("Sample %u\n", i);
|
||||||
fflush(stdout);
|
|
||||||
samples++;
|
samples++;
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|||||||
@ -15,10 +15,11 @@ def testfunc(child):
|
|||||||
child.expect(r"Evaluate RTT_MIN_OFFSET over (\d+) samples")
|
child.expect(r"Evaluate RTT_MIN_OFFSET over (\d+) samples")
|
||||||
|
|
||||||
exp_samples = int(child.match.group(1))
|
exp_samples = int(child.match.group(1))
|
||||||
child.expect(
|
test_end = r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} ' \
|
||||||
r'RTT_MIN_OFFSET for [a-zA-Z\-\_0-9]+ over {samples} samples: \d+'
|
r'samples: \d+'.format(samples=exp_samples)
|
||||||
.format(samples=exp_samples)
|
test_ongoing = r'Sample \d+'
|
||||||
)
|
while child.expect([test_end, test_ongoing]):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user