Skip to content

Commit

Permalink
Merge pull request #16329 from miri64/tests/fix/periph_rtt_min-timeout
Browse files Browse the repository at this point in the history
tests/periph_rtt_min: adapt for slower RTTs
  • Loading branch information
miri64 authored Apr 16, 2021
2 parents 286e4ec + e27675b commit dec82b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/periph_rtt_min/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ int main(void)
if (offset > value) {
value = offset;
}
printf(".");
fflush(stdout);
printf("Sample %u\n", i);
samples++;
}
printf("\n");
Expand Down
9 changes: 5 additions & 4 deletions tests/periph_rtt_min/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit dec82b2

Please sign in to comment.