<p><b>@aabadie</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11252#discussion_r324056913">tests/periph_wdt/tests/01-run.py</a>:</p>
<pre style='color:#555'>> +# more than 50% from theoretical values (e.g STM32 board CLOCK_LSI)
+error_margin = 0.5
+
+
+def get_reset_time(child):
+    reset_time = 0
+    try:
+        start = time.time()
+        timeout = 10  # seconds
+        while time.time() < start + timeout:
+            child.expect(u"reset time: (\d+) us", timeout=1)
+            reset_time = int(child.match.group(1))
+        else:
+            # timeout
+            return reset_time
+            child.expect(u"reset time: (\d+) us", timeout=1)
</pre>
<p>Those 2 lines (under the return) are useless</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11252?email_source=notifications&email_token=ABE7WYD5NADDZ62E4XEZSHLQJM2SPA5CNFSM4HAVQX4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEUBIDA#pullrequestreview-287839244">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYH4QLJWD2XOTVEYP23QJM2SPANCNFSM4HAVQX4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGR5HMJUZ6WJVG76ZDQJM2SPA5CNFSM4HAVQX4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEUBIDA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11252?email_source=notifications\u0026email_token=ABE7WYD5NADDZ62E4XEZSHLQJM2SPA5CNFSM4HAVQX4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEUBIDA#pullrequestreview-287839244",
"url": "https://github.com/RIOT-OS/RIOT/pull/11252?email_source=notifications\u0026email_token=ABE7WYD5NADDZ62E4XEZSHLQJM2SPA5CNFSM4HAVQX4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEUBIDA#pullrequestreview-287839244",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>