<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=675644" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miri64">@miri64</a> I have used the <code>MAKE_TERM_STARTED_DELAY</code> but it does not solve my problem. I don't need the terminal to open after my reset completes. I need it to during my reset operation. I came up with a work around in my Makefile by doing <code>make flash & make term</code> which will run flash in the background and the terminal is opened immediately. The flash and reset take different times for different tests and using just <code>MAKE_TERM_STARTED_DELAY</code> works only in a few cases. I do not want to keep changing this environment variable according to each test as I plan to run them in a loop. Thus the solution I came up with was to increase the timeout and wait for the background task to start the reset and once that's done the terminal receives the serial output and the tests pass.</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/11853?email_source=notifications&email_token=ABE7WYCIASY3ZBKL4ASUZJTP73ZKBA5CNFSM4IECZVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DZDEQ#issuecomment-512201106">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCMUSBGJGEEC3UT3QDP73ZKBANCNFSM4IECZVOA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGC2CV7YRXVJNPQDKTP73ZKBA5CNFSM4IECZVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DZDEQ.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/11853?email_source=notifications\u0026email_token=ABE7WYCIASY3ZBKL4ASUZJTP73ZKBA5CNFSM4IECZVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DZDEQ#issuecomment-512201106",
"url": "https://github.com/RIOT-OS/RIOT/pull/11853?email_source=notifications\u0026email_token=ABE7WYCIASY3ZBKL4ASUZJTP73ZKBA5CNFSM4IECZVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DZDEQ#issuecomment-512201106",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>